Home
last modified time | relevance | path

Searched refs:masm (Results 1 – 25 of 102) sorted by relevance

12345

/external/v8/src/mips/
Ddebug-mips.cc61 patcher.masm()->li(v8::internal::t9, in SetDebugBreakAtReturn()
64 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtReturn()
65 patcher.masm()->nop(); in SetDebugBreakAtReturn()
66 patcher.masm()->nop(); in SetDebugBreakAtReturn()
67 patcher.masm()->nop(); in SetDebugBreakAtReturn()
107 patcher.masm()->li(v8::internal::t9, Operand(reinterpret_cast<int32_t>( in SetDebugBreakAtSlot()
109 patcher.masm()->Call(v8::internal::t9); in SetDebugBreakAtSlot()
120 #define __ ACCESS_MASM(masm)
124 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, in Generate_DebugBreakCallHelper() argument
128 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_DebugBreakCallHelper()
[all …]
Dcode-stubs-mips.h50 void Generate(MacroAssembler* masm);
54 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
67 void Generate(MacroAssembler* masm);
113 void Generate(MacroAssembler* masm);
115 void GenerateTypeTransition(MacroAssembler* masm);
117 void GenerateSmiStub(MacroAssembler* masm);
118 void GenerateSmiStubSub(MacroAssembler* masm);
119 void GenerateSmiStubBitNot(MacroAssembler* masm);
120 void GenerateSmiCodeSub(MacroAssembler* masm, Label* non_smi, Label* slow);
121 void GenerateSmiCodeBitNot(MacroAssembler* masm, Label* slow);
[all …]
Dic-mips.cc48 #define __ ACCESS_MASM(masm)
51 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, in GenerateGlobalInstanceTypeCheck() argument
64 static void GenerateStringDictionaryReceiverCheck(MacroAssembler* masm, in GenerateStringDictionaryReceiverCheck() argument
88 GenerateGlobalInstanceTypeCheck(masm, scratch1, miss); in GenerateStringDictionaryReceiverCheck()
118 static void GenerateDictionaryLoad(MacroAssembler* masm, in GenerateDictionaryLoad() argument
132 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryLoad()
171 static void GenerateDictionaryStore(MacroAssembler* masm, in GenerateDictionaryStore() argument
185 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryStore()
218 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { in GenerateArrayLength() argument
227 StubCompiler::GenerateLoadArrayLength(masm, a0, a3, &miss); in GenerateArrayLength()
[all …]
/external/v8/src/arm/
Ddebug-arm.cc62 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); in SetDebugBreakAtReturn()
63 patcher.masm()->blx(v8::internal::ip); in SetDebugBreakAtReturn()
65 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); in SetDebugBreakAtReturn()
66 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); in SetDebugBreakAtReturn()
69 patcher.masm()->bkpt(0); in SetDebugBreakAtReturn()
112 patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); in SetDebugBreakAtSlot()
113 patcher.masm()->blx(v8::internal::ip); in SetDebugBreakAtSlot()
115 patcher.masm()->mov(v8::internal::lr, v8::internal::pc); in SetDebugBreakAtSlot()
116 patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); in SetDebugBreakAtSlot()
129 #define __ ACCESS_MASM(masm)
[all …]
Dcode-stubs-arm.h49 void Generate(MacroAssembler* masm);
53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
66 void Generate(MacroAssembler* masm);
112 void Generate(MacroAssembler* masm);
114 void GenerateTypeTransition(MacroAssembler* masm);
116 void GenerateSmiStub(MacroAssembler* masm);
117 void GenerateSmiStubSub(MacroAssembler* masm);
118 void GenerateSmiStubBitNot(MacroAssembler* masm);
119 void GenerateSmiCodeSub(MacroAssembler* masm, Label* non_smi, Label* slow);
120 void GenerateSmiCodeBitNot(MacroAssembler* masm, Label* slow);
[all …]
Dic-arm.cc48 #define __ ACCESS_MASM(masm)
51 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, in GenerateGlobalInstanceTypeCheck() argument
67 static void GenerateStringDictionaryReceiverCheck(MacroAssembler* masm, in GenerateStringDictionaryReceiverCheck() argument
91 GenerateGlobalInstanceTypeCheck(masm, t1, miss); in GenerateStringDictionaryReceiverCheck()
120 static void GenerateDictionaryLoad(MacroAssembler* masm, in GenerateDictionaryLoad() argument
134 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryLoad()
169 static void GenerateDictionaryStore(MacroAssembler* masm, in GenerateDictionaryStore() argument
183 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryStore()
216 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { in GenerateArrayLength() argument
225 StubCompiler::GenerateLoadArrayLength(masm, r0, r3, &miss); in GenerateArrayLength()
[all …]
Dbuiltins-arm.cc42 #define __ ACCESS_MASM(masm)
45 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument
71 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor()
76 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument
92 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument
108 static void AllocateEmptyJSArray(MacroAssembler* masm, in AllocateEmptyJSArray() argument
200 static void AllocateJSArray(MacroAssembler* masm, in AllocateJSArray() argument
312 static void ArrayNativeCode(MacroAssembler* masm, in ArrayNativeCode() argument
314 Counters* counters = masm->isolate()->counters(); in ArrayNativeCode()
324 AllocateEmptyJSArray(masm, in ArrayNativeCode()
[all …]
/external/v8/src/x64/
Dcode-stubs-x64.h50 void Generate(MacroAssembler* masm);
51 static void GenerateOperation(MacroAssembler* masm,
68 void Generate(MacroAssembler* masm);
121 void Generate(MacroAssembler* masm);
123 void GenerateTypeTransition(MacroAssembler* masm);
125 void GenerateSmiStub(MacroAssembler* masm);
126 void GenerateSmiStubSub(MacroAssembler* masm);
127 void GenerateSmiStubBitNot(MacroAssembler* masm);
128 void GenerateSmiCodeSub(MacroAssembler* masm,
133 void GenerateSmiCodeBitNot(MacroAssembler* masm,
[all …]
Ddebug-x64.cc95 #define __ ACCESS_MASM(masm)
98 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, in Generate_DebugBreakCallHelper() argument
104 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_DebugBreakCallHelper()
134 __ movq(rbx, ExternalReference::debug_break(masm->isolate())); in Generate_DebugBreakCallHelper()
173 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); in Generate_DebugBreakCallHelper()
179 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { in GenerateLoadICDebugBreak() argument
185 Generate_DebugBreakCallHelper(masm, rax.bit() | rcx.bit(), 0, false); in GenerateLoadICDebugBreak()
189 void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) { in GenerateStoreICDebugBreak() argument
197 masm, rax.bit() | rcx.bit() | rdx.bit(), 0, false); in GenerateStoreICDebugBreak()
201 void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { in GenerateKeyedLoadICDebugBreak() argument
[all …]
Dic-x64.cc44 #define __ ACCESS_MASM(masm)
47 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, in GenerateGlobalInstanceTypeCheck() argument
63 static void GenerateStringDictionaryReceiverCheck(MacroAssembler* masm, in GenerateStringDictionaryReceiverCheck() argument
85 GenerateGlobalInstanceTypeCheck(masm, r0, miss); in GenerateStringDictionaryReceiverCheck()
108 static void GenerateDictionaryLoad(MacroAssembler* masm, in GenerateDictionaryLoad() argument
130 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryLoad()
166 static void GenerateDictionaryStore(MacroAssembler* masm, in GenerateDictionaryStore() argument
188 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryStore()
228 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { in GenerateArrayLength() argument
236 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss); in GenerateArrayLength()
[all …]
Dbuiltins-x64.cc40 #define __ ACCESS_MASM(masm)
43 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument
72 __ JumpToExternalReference(ExternalReference(id, masm->isolate()), 1); in Generate_Adaptor()
76 static void Generate_JSConstructStubHelper(MacroAssembler* masm, in Generate_JSConstructStubHelper() argument
89 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSConstructStubHelper()
106 ExternalReference::debug_step_in_fp_address(masm->isolate()); in Generate_JSConstructStubHelper()
322 masm->isolate()->builtins()->HandleApiCallConstruct(); in Generate_JSConstructStubHelper()
334 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); in Generate_JSConstructStubHelper()
367 SmiIndex index = masm->SmiToIndex(rbx, rbx, kPointerSizeLog2); in Generate_JSConstructStubHelper()
370 Counters* counters = masm->isolate()->counters(); in Generate_JSConstructStubHelper()
[all …]
Dcode-stubs-x64.cc39 #define __ ACCESS_MASM(masm)
41 void ToNumberStub::Generate(MacroAssembler* masm) { in Generate() argument
62 void FastNewClosureStub::Generate(MacroAssembler* masm) { in Generate() argument
117 void FastNewContextStub::Generate(MacroAssembler* masm) { in Generate() argument
158 void FastNewBlockContextStub::Generate(MacroAssembler* masm) { in Generate() argument
223 MacroAssembler* masm, in GenerateFastCloneShallowArrayCommon() argument
283 void FastCloneShallowArrayStub::Generate(MacroAssembler* masm) { in Generate() argument
294 SmiIndex index = masm->SmiToIndex(rax, rax, kPointerSizeLog2); in Generate()
303 Factory* factory = masm->isolate()->factory(); in Generate()
310 GenerateFastCloneShallowArrayCommon(masm, 0, in Generate()
[all …]
/external/v8/src/ia32/
Dcode-stubs-ia32.h51 void Generate(MacroAssembler* masm);
52 static void GenerateOperation(MacroAssembler* masm,
69 void Generate(MacroAssembler* masm);
115 void Generate(MacroAssembler* masm);
117 void GenerateTypeTransition(MacroAssembler* masm);
119 void GenerateSmiStub(MacroAssembler* masm);
120 void GenerateSmiStubSub(MacroAssembler* masm);
121 void GenerateSmiStubBitNot(MacroAssembler* masm);
122 void GenerateSmiCodeSub(MacroAssembler* masm,
129 void GenerateSmiCodeBitNot(MacroAssembler* masm,
[all …]
Ddebug-ia32.cc95 #define __ ACCESS_MASM(masm)
98 static void Generate_DebugBreakCallHelper(MacroAssembler* masm, in Generate_DebugBreakCallHelper() argument
104 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_DebugBreakCallHelper()
132 __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); in Generate_DebugBreakCallHelper()
167 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); in Generate_DebugBreakCallHelper()
172 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { in GenerateLoadICDebugBreak() argument
178 Generate_DebugBreakCallHelper(masm, eax.bit() | ecx.bit(), 0, false); in GenerateLoadICDebugBreak()
182 void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) { in GenerateStoreICDebugBreak() argument
190 masm, eax.bit() | ecx.bit() | edx.bit(), 0, false); in GenerateStoreICDebugBreak()
194 void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) { in GenerateKeyedLoadICDebugBreak() argument
[all …]
Dic-ia32.cc44 #define __ ACCESS_MASM(masm)
47 static void GenerateGlobalInstanceTypeCheck(MacroAssembler* masm, in GenerateGlobalInstanceTypeCheck() argument
63 static void GenerateStringDictionaryReceiverCheck(MacroAssembler* masm, in GenerateStringDictionaryReceiverCheck() argument
86 GenerateGlobalInstanceTypeCheck(masm, r0, miss); in GenerateStringDictionaryReceiverCheck()
106 static void GenerateDictionaryLoad(MacroAssembler* masm, in GenerateDictionaryLoad() argument
130 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryLoad()
163 static void GenerateDictionaryStore(MacroAssembler* masm, in GenerateDictionaryStore() argument
185 StringDictionaryLookupStub::GeneratePositiveLookup(masm, in GenerateDictionaryStore()
219 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { in GenerateArrayLength() argument
227 StubCompiler::GenerateLoadArrayLength(masm, eax, edx, &miss); in GenerateArrayLength()
[all …]
Dbuiltins-ia32.cc40 #define __ ACCESS_MASM(masm)
43 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument
73 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor()
77 static void Generate_JSConstructStubHelper(MacroAssembler* masm, in Generate_JSConstructStubHelper() argument
90 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSConstructStubHelper()
106 ExternalReference::debug_step_in_fp_address(masm->isolate()); in Generate_JSConstructStubHelper()
163 Factory* factory = masm->isolate()->factory(); in Generate_JSConstructStubHelper()
317 masm->isolate()->builtins()->HandleApiCallConstruct(); in Generate_JSConstructStubHelper()
329 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); in Generate_JSConstructStubHelper()
365 __ IncrementCounter(masm->isolate()->counters()->constructed_objects(), 1); in Generate_JSConstructStubHelper()
[all …]
Dcode-stubs-ia32.cc43 #define __ ACCESS_MASM(masm)
45 void ToNumberStub::Generate(MacroAssembler* masm) { in Generate() argument
53 Factory* factory = masm->isolate()->factory(); in Generate()
66 void FastNewClosureStub::Generate(MacroAssembler* masm) { in Generate() argument
88 Factory* factory = masm->isolate()->factory(); in Generate()
121 void FastNewContextStub::Generate(MacroAssembler* masm) { in Generate() argument
132 Factory* factory = masm->isolate()->factory(); in Generate()
164 void FastNewBlockContextStub::Generate(MacroAssembler* masm) { in Generate() argument
183 Factory* factory = masm->isolate()->factory(); in Generate()
236 MacroAssembler* masm, in GenerateFastCloneShallowArrayCommon() argument
[all …]
/external/v8/test/cctest/
Dtest-macro-assembler-x64.cc93 #define __ masm->
96 static void EntryCode(MacroAssembler* masm) { in EntryCode() argument
105 static void ExitCode(MacroAssembler* masm) { in ExitCode() argument
142 static void TestMoveSmi(MacroAssembler* masm, Label* exit, int id, Smi* value) { in TestMoveSmi() argument
164 MacroAssembler* masm = &assembler; // Create a pointer for the __ macro. in TEST() local
165 masm->set_allow_stub_calls(false); in TEST()
166 EntryCode(masm); in TEST()
169 TestMoveSmi(masm, &exit, 1, Smi::FromInt(0)); in TEST()
170 TestMoveSmi(masm, &exit, 2, Smi::FromInt(127)); in TEST()
171 TestMoveSmi(masm, &exit, 3, Smi::FromInt(128)); in TEST()
[all …]
Dtest-hashing.cc49 #define __ masm->
52 void generate(MacroAssembler* masm, i::Vector<const char> string) { in generate() argument
61 StringHelper::GenerateHashInit(masm, eax, ebx, ecx); in generate()
64 StringHelper::GenerateHashAddCharacter(masm, eax, ebx, ecx); in generate()
66 StringHelper::GenerateHashGetHash(masm, eax, ecx); in generate()
77 StringHelper::GenerateHashInit(masm, rax, rbx, rcx); in generate()
80 StringHelper::GenerateHashAddCharacter(masm, rax, rbx, rcx); in generate()
82 StringHelper::GenerateHashGetHash(masm, rax, rcx); in generate()
93 StringHelper::GenerateHashInit(masm, r0, ip); in generate()
96 StringHelper::GenerateHashAddCharacter(masm, r0, ip); in generate()
[all …]
/external/v8/src/
Dcode-stubs.cc51 void CodeStub::GenerateCode(MacroAssembler* masm) { in GenerateCode() argument
53 masm->isolate()->counters()->code_stubs()->Increment(); in GenerateCode()
56 AllowStubCallsScope allow_scope(masm, false); in GenerateCode()
59 masm->set_generating_stub(true); in GenerateCode()
60 NoCurrentFrameScope scope(masm); in GenerateCode()
61 Generate(masm); in GenerateCode()
75 void CodeStub::RecordCodeGeneration(Code* code, MacroAssembler* masm) { in RecordCodeGeneration() argument
78 Isolate* isolate = masm->isolate(); in RecordCodeGeneration()
115 MacroAssembler masm(isolate, NULL, 256); in GetCode() local
116 GenerateCode(&masm); in GetCode()
[all …]
Dmacro-assembler.h77 explicit FrameScope(MacroAssembler* masm, StackFrame::Type type) in FrameScope() argument
78 : masm_(masm), type_(type), old_has_frame_(masm->has_frame()) { in FrameScope()
79 masm->set_has_frame(true); in FrameScope()
81 masm->EnterFrame(type); in FrameScope()
110 explicit AllowExternalCallThatCantCauseGC(MacroAssembler* masm) in AllowExternalCallThatCantCauseGC() argument
111 : FrameScope(masm, StackFrame::NONE) { } in AllowExternalCallThatCantCauseGC()
117 explicit NoCurrentFrameScope(MacroAssembler* masm) in NoCurrentFrameScope() argument
118 : masm_(masm), saved_(masm->has_frame()) { in NoCurrentFrameScope()
119 masm->set_has_frame(false); in NoCurrentFrameScope()
137 Comment(MacroAssembler* masm, const char* msg);
Dic.h247 static void GenerateMiss(MacroAssembler* masm,
252 static void GenerateNormal(MacroAssembler* masm, int argc);
254 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm,
272 static void GenerateInitialize(MacroAssembler* masm, in GenerateInitialize() argument
275 GenerateMiss(masm, argc, extra_state); in GenerateInitialize()
278 static void GenerateMiss(MacroAssembler* masm, in GenerateMiss() argument
281 CallICBase::GenerateMiss(masm, argc, IC::kCallIC_Miss, extra_state); in GenerateMiss()
284 static void GenerateMegamorphic(MacroAssembler* masm,
288 static void GenerateNormal(MacroAssembler* masm, int argc) { in GenerateNormal() argument
289 CallICBase::GenerateNormal(masm, argc); in GenerateNormal()
[all …]
Dcode-stubs.h171 void GenerateCode(MacroAssembler* masm);
174 virtual void Generate(MacroAssembler* masm) = 0;
178 void RecordCodeGeneration(Code* code, MacroAssembler* masm);
237 virtual void BeforeCall(MacroAssembler* masm) const = 0;
239 virtual void AfterCall(MacroAssembler* masm) const = 0;
272 virtual void BeforeCall(MacroAssembler* masm) const;
274 virtual void AfterCall(MacroAssembler* masm) const;
283 virtual void BeforeCall(MacroAssembler* masm) const {} in BeforeCall() argument
285 virtual void AfterCall(MacroAssembler* masm) const {} in AfterCall() argument
293 void Generate(MacroAssembler* masm);
[all …]
Dbuiltins.cc1286 static void Generate_LoadIC_ArrayLength(MacroAssembler* masm) { in Generate_LoadIC_ArrayLength() argument
1287 LoadIC::GenerateArrayLength(masm); in Generate_LoadIC_ArrayLength()
1291 static void Generate_LoadIC_StringLength(MacroAssembler* masm) { in Generate_LoadIC_StringLength() argument
1292 LoadIC::GenerateStringLength(masm, false); in Generate_LoadIC_StringLength()
1296 static void Generate_LoadIC_StringWrapperLength(MacroAssembler* masm) { in Generate_LoadIC_StringWrapperLength() argument
1297 LoadIC::GenerateStringLength(masm, true); in Generate_LoadIC_StringWrapperLength()
1301 static void Generate_LoadIC_FunctionPrototype(MacroAssembler* masm) { in Generate_LoadIC_FunctionPrototype() argument
1302 LoadIC::GenerateFunctionPrototype(masm); in Generate_LoadIC_FunctionPrototype()
1306 static void Generate_LoadIC_Initialize(MacroAssembler* masm) { in Generate_LoadIC_Initialize() argument
1307 LoadIC::GenerateInitialize(masm); in Generate_LoadIC_Initialize()
[all …]
Dcodegen.cc46 Comment::Comment(MacroAssembler* masm, const char* msg) in Comment() argument
47 : masm_(masm), msg_(msg) { in Comment()
96 Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, in MakeCodeEpilogue() argument
103 masm->GetCode(&desc); in MakeCodeEpilogue()
105 isolate->factory()->NewCode(desc, flags, masm->CodeObject()); in MakeCodeEpilogue()
168 bool CodeGenerator::RecordPositions(MacroAssembler* masm, in RecordPositions() argument
172 masm->positions_recorder()->RecordStatementPosition(pos); in RecordPositions()
173 masm->positions_recorder()->RecordPosition(pos); in RecordPositions()
175 return masm->positions_recorder()->WriteRecordedPositions(); in RecordPositions()
182 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { in Generate() argument
[all …]

12345