Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 1250563004: HydrogenCodeStubs consume stack arguments via descriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 19 matching lines...) Expand all
30 // edi -- function 30 // edi -- function
31 // ebx -- allocation site with elements kind 31 // ebx -- allocation site with elements kind
32 Address deopt_handler = Runtime::FunctionForId( 32 Address deopt_handler = Runtime::FunctionForId(
33 Runtime::kArrayConstructor)->entry; 33 Runtime::kArrayConstructor)->entry;
34 34
35 if (constant_stack_parameter_count == 0) { 35 if (constant_stack_parameter_count == 0) {
36 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, 36 descriptor->Initialize(deopt_handler, constant_stack_parameter_count,
37 JS_FUNCTION_STUB_MODE); 37 JS_FUNCTION_STUB_MODE);
38 } else { 38 } else {
39 descriptor->Initialize(eax, deopt_handler, constant_stack_parameter_count, 39 descriptor->Initialize(eax, deopt_handler, constant_stack_parameter_count,
40 JS_FUNCTION_STUB_MODE, PASS_ARGUMENTS); 40 JS_FUNCTION_STUB_MODE);
41 } 41 }
42 } 42 }
43 43
44 44
45 static void InitializeInternalArrayConstructorDescriptor( 45 static void InitializeInternalArrayConstructorDescriptor(
46 Isolate* isolate, CodeStubDescriptor* descriptor, 46 Isolate* isolate, CodeStubDescriptor* descriptor,
47 int constant_stack_parameter_count) { 47 int constant_stack_parameter_count) {
48 // register state 48 // register state
49 // eax -- number of arguments 49 // eax -- number of arguments
50 // edi -- constructor function 50 // edi -- constructor function
51 Address deopt_handler = Runtime::FunctionForId( 51 Address deopt_handler = Runtime::FunctionForId(
52 Runtime::kInternalArrayConstructor)->entry; 52 Runtime::kInternalArrayConstructor)->entry;
53 53
54 if (constant_stack_parameter_count == 0) { 54 if (constant_stack_parameter_count == 0) {
55 descriptor->Initialize(deopt_handler, constant_stack_parameter_count, 55 descriptor->Initialize(deopt_handler, constant_stack_parameter_count,
56 JS_FUNCTION_STUB_MODE); 56 JS_FUNCTION_STUB_MODE);
57 } else { 57 } else {
58 descriptor->Initialize(eax, deopt_handler, constant_stack_parameter_count, 58 descriptor->Initialize(eax, deopt_handler, constant_stack_parameter_count,
59 JS_FUNCTION_STUB_MODE, PASS_ARGUMENTS); 59 JS_FUNCTION_STUB_MODE);
60 } 60 }
61 } 61 }
62 62
63 63
64 void ArrayNoArgumentConstructorStub::InitializeDescriptor( 64 void ArrayNoArgumentConstructorStub::InitializeDescriptor(
65 CodeStubDescriptor* descriptor) { 65 CodeStubDescriptor* descriptor) {
66 InitializeArrayConstructorDescriptor(isolate(), descriptor, 0); 66 InitializeArrayConstructorDescriptor(isolate(), descriptor, 0);
67 } 67 }
68 68
69 69
(...skipping 5434 matching lines...) Expand 10 before | Expand all | Expand 10 after
5504 Operand(ebp, 7 * kPointerSize), NULL); 5504 Operand(ebp, 7 * kPointerSize), NULL);
5505 } 5505 }
5506 5506
5507 5507
5508 #undef __ 5508 #undef __
5509 5509
5510 } // namespace internal 5510 } // namespace internal
5511 } // namespace v8 5511 } // namespace v8
5512 5512
5513 #endif // V8_TARGET_ARCH_IA32 5513 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/ia32/interface-descriptors-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698