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

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

Issue 1199983002: [strong] Implement strong property access semantics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add TODOs 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/runtime/runtime-object.cc ('k') | src/x64/code-stubs-x64.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 __ bind(&loop); 1135 __ bind(&loop);
1136 __ movp(receiver, Operand(rbp, argumentsOffset)); // load arguments 1136 __ movp(receiver, Operand(rbp, argumentsOffset)); // load arguments
1137 1137
1138 // Use inline caching to speed up access to arguments. 1138 // Use inline caching to speed up access to arguments.
1139 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC); 1139 FeedbackVectorSpec spec(0, Code::KEYED_LOAD_IC);
1140 Handle<TypeFeedbackVector> feedback_vector = 1140 Handle<TypeFeedbackVector> feedback_vector =
1141 masm->isolate()->factory()->NewTypeFeedbackVector(&spec); 1141 masm->isolate()->factory()->NewTypeFeedbackVector(&spec);
1142 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0)); 1142 int index = feedback_vector->GetIndex(FeedbackVectorICSlot(0));
1143 __ Move(slot, Smi::FromInt(index)); 1143 __ Move(slot, Smi::FromInt(index));
1144 __ Move(vector, feedback_vector); 1144 __ Move(vector, feedback_vector);
1145 Handle<Code> ic = KeyedLoadICStub(masm->isolate()).GetCode(); 1145 Handle<Code> ic =
1146 KeyedLoadICStub(masm->isolate(), LoadICState(kNoExtraICState)).GetCode();
1146 __ Call(ic, RelocInfo::CODE_TARGET); 1147 __ Call(ic, RelocInfo::CODE_TARGET);
1147 // It is important that we do not have a test instruction after the 1148 // It is important that we do not have a test instruction after the
1148 // call. A test instruction after the call is used to indicate that 1149 // call. A test instruction after the call is used to indicate that
1149 // we have generated an inline version of the keyed load. In this 1150 // we have generated an inline version of the keyed load. In this
1150 // case, we know that we are not generating a test instruction next. 1151 // case, we know that we are not generating a test instruction next.
1151 1152
1152 // Push the nth argument. 1153 // Push the nth argument.
1153 __ Push(rax); 1154 __ Push(rax);
1154 1155
1155 // Update the index on the stack and in register key. 1156 // Update the index on the stack and in register key.
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 __ ret(0); 1805 __ ret(0);
1805 } 1806 }
1806 1807
1807 1808
1808 #undef __ 1809 #undef __
1809 1810
1810 } // namespace internal 1811 } // namespace internal
1811 } // namespace v8 1812 } // namespace v8
1812 1813
1813 #endif // V8_TARGET_ARCH_X64 1814 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime/runtime-object.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698