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

Side by Side Diff: src/x64/builtins-x64.cc

Issue 527093002: Make concrete classes for individual call descriptors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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 | Annotate | Revision Log
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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 __ movp(rbx, 1058 __ movp(rbx,
1059 Operand(rsi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); 1059 Operand(rsi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
1060 __ movp(rbx, FieldOperand(rbx, GlobalObject::kGlobalProxyOffset)); 1060 __ movp(rbx, FieldOperand(rbx, GlobalObject::kGlobalProxyOffset));
1061 1061
1062 // Push the receiver. 1062 // Push the receiver.
1063 __ bind(&push_receiver); 1063 __ bind(&push_receiver);
1064 __ Push(rbx); 1064 __ Push(rbx);
1065 1065
1066 // Copy all arguments from the array to the stack. 1066 // Copy all arguments from the array to the stack.
1067 Label entry, loop; 1067 Label entry, loop;
1068 Register receiver = LoadConvention::ReceiverRegister(); 1068 Register receiver = LoadDescriptor::ReceiverRegister();
1069 Register key = LoadConvention::NameRegister(); 1069 Register key = LoadDescriptor::NameRegister();
1070 __ movp(key, Operand(rbp, kIndexOffset)); 1070 __ movp(key, Operand(rbp, kIndexOffset));
1071 __ jmp(&entry); 1071 __ jmp(&entry);
1072 __ bind(&loop); 1072 __ bind(&loop);
1073 __ movp(receiver, Operand(rbp, kArgumentsOffset)); // load arguments 1073 __ movp(receiver, Operand(rbp, kArgumentsOffset)); // load arguments
1074 1074
1075 // Use inline caching to speed up access to arguments. 1075 // Use inline caching to speed up access to arguments.
1076 if (FLAG_vector_ics) { 1076 if (FLAG_vector_ics) {
1077 __ Move(VectorLoadConvention::SlotRegister(), Smi::FromInt(0)); 1077 __ Move(VectorLoadICDescriptor::SlotRegister(), Smi::FromInt(0));
1078 } 1078 }
1079 Handle<Code> ic = 1079 Handle<Code> ic =
1080 masm->isolate()->builtins()->KeyedLoadIC_Initialize(); 1080 masm->isolate()->builtins()->KeyedLoadIC_Initialize();
1081 __ Call(ic, RelocInfo::CODE_TARGET); 1081 __ Call(ic, RelocInfo::CODE_TARGET);
1082 // It is important that we do not have a test instruction after the 1082 // It is important that we do not have a test instruction after the
1083 // call. A test instruction after the call is used to indicate that 1083 // call. A test instruction after the call is used to indicate that
1084 // we have generated an inline version of the keyed load. In this 1084 // we have generated an inline version of the keyed load. In this
1085 // case, we know that we are not generating a test instruction next. 1085 // case, we know that we are not generating a test instruction next.
1086 1086
1087 // Push the nth argument. 1087 // Push the nth argument.
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 __ bind(&ok); 1517 __ bind(&ok);
1518 __ ret(0); 1518 __ ret(0);
1519 } 1519 }
1520 1520
1521 1521
1522 #undef __ 1522 #undef __
1523 1523
1524 } } // namespace v8::internal 1524 } } // namespace v8::internal
1525 1525
1526 #endif // V8_TARGET_ARCH_X64 1526 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/interface-descriptors.h ('K') | « src/isolate.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698