OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
8 | 8 |
9 #include "src/field-type.h" | 9 #include "src/field-type.h" |
10 #include "src/ic/call-optimization.h" | 10 #include "src/ic/call-optimization.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 RelocInfo::CODE_TARGET); | 202 RelocInfo::CODE_TARGET); |
203 return; | 203 return; |
204 } | 204 } |
205 | 205 |
206 // Put api_function_address in place. | 206 // Put api_function_address in place. |
207 Address function_address = v8::ToCData<Address>(api_call_info->callback()); | 207 Address function_address = v8::ToCData<Address>(api_call_info->callback()); |
208 __ Move(api_function_address, function_address, | 208 __ Move(api_function_address, function_address, |
209 RelocInfo::EXTERNAL_REFERENCE); | 209 RelocInfo::EXTERNAL_REFERENCE); |
210 | 210 |
211 // Jump to stub. | 211 // Jump to stub. |
212 CallApiAccessorStub stub(isolate, is_store, call_data_undefined, | 212 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, |
213 !optimization.is_constant_call()); | 213 !optimization.is_constant_call()); |
214 __ TailCallStub(&stub); | 214 __ TailCallStub(&stub); |
215 } | 215 } |
216 | 216 |
217 | 217 |
218 void PropertyHandlerCompiler::GenerateCheckPropertyCell( | 218 void PropertyHandlerCompiler::GenerateCheckPropertyCell( |
219 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, | 219 MacroAssembler* masm, Handle<JSGlobalObject> global, Handle<Name> name, |
220 Register scratch, Label* miss) { | 220 Register scratch, Label* miss) { |
221 Handle<PropertyCell> cell = JSGlobalObject::EnsurePropertyCell(global, name); | 221 Handle<PropertyCell> cell = JSGlobalObject::EnsurePropertyCell(global, name); |
222 DCHECK(cell->value()->IsTheHole()); | 222 DCHECK(cell->value()->IsTheHole()); |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 // Return the generated code. | 810 // Return the generated code. |
811 return GetCode(kind(), Code::NORMAL, name); | 811 return GetCode(kind(), Code::NORMAL, name); |
812 } | 812 } |
813 | 813 |
814 | 814 |
815 #undef __ | 815 #undef __ |
816 } // namespace internal | 816 } // namespace internal |
817 } // namespace v8 | 817 } // namespace v8 |
818 | 818 |
819 #endif // V8_TARGET_ARCH_X64 | 819 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |