OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
11 #include "src/gdb-jit.h" | 11 #include "src/gdb-jit.h" |
12 #include "src/ic/handler-compiler.h" | 12 #include "src/ic/handler-compiler.h" |
13 #include "src/macro-assembler.h" | 13 #include "src/macro-assembler.h" |
14 | 14 |
15 namespace v8 { | 15 namespace v8 { |
16 namespace internal { | 16 namespace internal { |
17 | 17 |
18 | 18 |
19 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor() | 19 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor(CodeStub* stub) |
20 : stack_parameter_count_(no_reg), | 20 : stack_parameter_count_(no_reg), |
21 hint_stack_parameter_count_(-1), | 21 hint_stack_parameter_count_(-1), |
22 function_mode_(NOT_JS_FUNCTION_STUB_MODE), | 22 function_mode_(NOT_JS_FUNCTION_STUB_MODE), |
23 deoptimization_handler_(NULL), | 23 deoptimization_handler_(NULL), |
24 handler_arguments_mode_(DONT_PASS_ARGUMENTS), | 24 handler_arguments_mode_(DONT_PASS_ARGUMENTS), |
25 miss_handler_(), | 25 miss_handler_(), |
26 has_miss_handler_(false) {} | 26 has_miss_handler_(false) { |
| 27 stub->InitializeInterfaceDescriptor(this); |
| 28 } |
| 29 |
| 30 |
| 31 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor(Isolate* isolate, |
| 32 uint32_t stub_key) |
| 33 : stack_parameter_count_(no_reg), |
| 34 hint_stack_parameter_count_(-1), |
| 35 function_mode_(NOT_JS_FUNCTION_STUB_MODE), |
| 36 deoptimization_handler_(NULL), |
| 37 handler_arguments_mode_(DONT_PASS_ARGUMENTS), |
| 38 miss_handler_(), |
| 39 has_miss_handler_(false) { |
| 40 CodeStub::InitializeInterfaceDescriptor(isolate, stub_key, this); |
| 41 } |
27 | 42 |
28 | 43 |
29 void CodeStubInterfaceDescriptor::Initialize( | 44 void CodeStubInterfaceDescriptor::Initialize( |
30 CodeStub::Major major, CallInterfaceDescriptor call_descriptor, | 45 CodeStub::Major major, CallInterfaceDescriptor call_descriptor, |
31 Address deoptimization_handler, int hint_stack_parameter_count, | 46 Address deoptimization_handler, int hint_stack_parameter_count, |
32 StubFunctionMode function_mode) { | 47 StubFunctionMode function_mode) { |
33 call_descriptor_ = call_descriptor; | 48 call_descriptor_ = call_descriptor; |
34 deoptimization_handler_ = deoptimization_handler; | 49 deoptimization_handler_ = deoptimization_handler; |
35 hint_stack_parameter_count_ = hint_stack_parameter_count; | 50 hint_stack_parameter_count_ = hint_stack_parameter_count; |
36 function_mode_ = function_mode; | 51 function_mode_ = function_mode; |
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 } | 1000 } |
986 | 1001 |
987 | 1002 |
988 InternalArrayConstructorStub::InternalArrayConstructorStub( | 1003 InternalArrayConstructorStub::InternalArrayConstructorStub( |
989 Isolate* isolate) : PlatformCodeStub(isolate) { | 1004 Isolate* isolate) : PlatformCodeStub(isolate) { |
990 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 1005 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
991 } | 1006 } |
992 | 1007 |
993 | 1008 |
994 } } // namespace v8::internal | 1009 } } // namespace v8::internal |
OLD | NEW |