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

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

Issue 13520004: [NOT FOR COMMIT] Native Client builds of V8 on ia32 and x64. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: A couple minor cleanups Created 7 years, 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 11 matching lines...) Expand all
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #if defined(V8_TARGET_ARCH_X64) 30 #if defined(V8_TARGET_ARCH_X64)
31 31
32 #include "arguments.h"
32 #include "bootstrapper.h" 33 #include "bootstrapper.h"
33 #include "code-stubs.h" 34 #include "code-stubs.h"
34 #include "regexp-macro-assembler.h" 35 #include "regexp-macro-assembler.h"
35 #include "stub-cache.h" 36 #include "stub-cache.h"
36 #include "runtime.h" 37 #include "runtime.h"
37 38
38 namespace v8 { 39 namespace v8 {
39 namespace internal { 40 namespace internal {
40 41
41 42
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 Isolate* isolate, 78 Isolate* isolate,
78 CodeStubInterfaceDescriptor* descriptor) { 79 CodeStubInterfaceDescriptor* descriptor) {
79 static Register registers[] = { rax, rbx }; 80 static Register registers[] = { rax, rbx };
80 descriptor->register_param_count_ = 2; 81 descriptor->register_param_count_ = 2;
81 descriptor->register_params_ = registers; 82 descriptor->register_params_ = registers;
82 descriptor->deoptimization_handler_ = 83 descriptor->deoptimization_handler_ =
83 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; 84 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry;
84 } 85 }
85 86
86 87
88 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ArrayConstructor_StubFailure);
87 static void InitializeArrayConstructorDescriptor(Isolate* isolate, 89 static void InitializeArrayConstructorDescriptor(Isolate* isolate,
88 CodeStubInterfaceDescriptor* descriptor) { 90 CodeStubInterfaceDescriptor* descriptor) {
89 // register state 91 // register state
90 // rdi -- constructor function 92 // rdi -- constructor function
91 // rbx -- type info cell with elements kind 93 // rbx -- type info cell with elements kind
92 // rax -- number of arguments to the constructor function 94 // rax -- number of arguments to the constructor function
93 static Register registers[] = { rdi, rbx }; 95 static Register registers[] = { rdi, rbx };
94 descriptor->register_param_count_ = 2; 96 descriptor->register_param_count_ = 2;
95 // stack param count needs (constructor pointer, and single argument) 97 // stack param count needs (constructor pointer, and single argument)
96 descriptor->stack_parameter_count_ = &rax; 98 descriptor->stack_parameter_count_ = &rax;
(...skipping 6759 matching lines...) Expand 10 before | Expand all | Expand 10 after
6856 #endif 6858 #endif
6857 6859
6858 __ Ret(); 6860 __ Ret();
6859 } 6861 }
6860 6862
6861 #undef __ 6863 #undef __
6862 6864
6863 } } // namespace v8::internal 6865 } } // namespace v8::internal
6864 6866
6865 #endif // V8_TARGET_ARCH_X64 6867 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/arm/simulator-arm.cc ('K') | « src/v8utils.h ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698