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

Side by Side Diff: src/x87/stub-cache-x87.cc

Issue 441873002: X87: Avoid one repeated property lookup when computing load ICs. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 } 1210 }
1211 __ ret(0); 1211 __ ret(0);
1212 } 1212 }
1213 1213
1214 1214
1215 #undef __ 1215 #undef __
1216 #define __ ACCESS_MASM(masm()) 1216 #define __ ACCESS_MASM(masm())
1217 1217
1218 1218
1219 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( 1219 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal(
1220 Handle<PropertyCell> cell, Handle<Name> name, bool is_dont_delete) { 1220 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) {
1221 Label miss; 1221 Label miss;
1222 1222
1223 FrontendHeader(receiver(), name, &miss); 1223 FrontendHeader(receiver(), name, &miss);
1224 // Get the value from the cell. 1224 // Get the value from the cell.
1225 Register result = StoreIC::ValueRegister(); 1225 Register result = StoreIC::ValueRegister();
1226 if (masm()->serializer_enabled()) { 1226 if (masm()->serializer_enabled()) {
1227 __ mov(result, Immediate(cell)); 1227 __ mov(result, Immediate(cell));
1228 __ mov(result, FieldOperand(result, PropertyCell::kValueOffset)); 1228 __ mov(result, FieldOperand(result, PropertyCell::kValueOffset));
1229 } else { 1229 } else {
1230 __ mov(result, Operand::ForCell(cell)); 1230 __ mov(result, Operand::ForCell(cell));
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1354 // ----------------------------------- 1354 // -----------------------------------
1355 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1355 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1356 } 1356 }
1357 1357
1358 1358
1359 #undef __ 1359 #undef __
1360 1360
1361 } } // namespace v8::internal 1361 } } // namespace v8::internal
1362 1362
1363 #endif // V8_TARGET_ARCH_X87 1363 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698