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 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 Isolate* isolate, CodeStubDescriptor* descriptor, | 25 Isolate* isolate, CodeStubDescriptor* descriptor, |
26 int constant_stack_parameter_count) { | 26 int constant_stack_parameter_count) { |
27 Address deopt_handler = Runtime::FunctionForId( | 27 Address deopt_handler = Runtime::FunctionForId( |
28 Runtime::kArrayConstructor)->entry; | 28 Runtime::kArrayConstructor)->entry; |
29 | 29 |
30 if (constant_stack_parameter_count == 0) { | 30 if (constant_stack_parameter_count == 0) { |
31 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, | 31 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, |
32 JS_FUNCTION_STUB_MODE); | 32 JS_FUNCTION_STUB_MODE); |
33 } else { | 33 } else { |
34 descriptor->Initialize(a0, deopt_handler, constant_stack_parameter_count, | 34 descriptor->Initialize(a0, deopt_handler, constant_stack_parameter_count, |
35 JS_FUNCTION_STUB_MODE, PASS_ARGUMENTS); | 35 JS_FUNCTION_STUB_MODE); |
36 } | 36 } |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 static void InitializeInternalArrayConstructorDescriptor( | 40 static void InitializeInternalArrayConstructorDescriptor( |
41 Isolate* isolate, CodeStubDescriptor* descriptor, | 41 Isolate* isolate, CodeStubDescriptor* descriptor, |
42 int constant_stack_parameter_count) { | 42 int constant_stack_parameter_count) { |
43 Address deopt_handler = Runtime::FunctionForId( | 43 Address deopt_handler = Runtime::FunctionForId( |
44 Runtime::kInternalArrayConstructor)->entry; | 44 Runtime::kInternalArrayConstructor)->entry; |
45 | 45 |
46 if (constant_stack_parameter_count == 0) { | 46 if (constant_stack_parameter_count == 0) { |
47 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, | 47 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, |
48 JS_FUNCTION_STUB_MODE); | 48 JS_FUNCTION_STUB_MODE); |
49 } else { | 49 } else { |
50 descriptor->Initialize(a0, deopt_handler, constant_stack_parameter_count, | 50 descriptor->Initialize(a0, deopt_handler, constant_stack_parameter_count, |
51 JS_FUNCTION_STUB_MODE, PASS_ARGUMENTS); | 51 JS_FUNCTION_STUB_MODE); |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 void ArrayNoArgumentConstructorStub::InitializeDescriptor( | 56 void ArrayNoArgumentConstructorStub::InitializeDescriptor( |
57 CodeStubDescriptor* descriptor) { | 57 CodeStubDescriptor* descriptor) { |
58 InitializeArrayConstructorDescriptor(isolate(), descriptor, 0); | 58 InitializeArrayConstructorDescriptor(isolate(), descriptor, 0); |
59 } | 59 } |
60 | 60 |
61 | 61 |
(...skipping 5547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5609 MemOperand(fp, 6 * kPointerSize), NULL); | 5609 MemOperand(fp, 6 * kPointerSize), NULL); |
5610 } | 5610 } |
5611 | 5611 |
5612 | 5612 |
5613 #undef __ | 5613 #undef __ |
5614 | 5614 |
5615 } // namespace internal | 5615 } // namespace internal |
5616 } // namespace v8 | 5616 } // namespace v8 |
5617 | 5617 |
5618 #endif // V8_TARGET_ARCH_MIPS64 | 5618 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |