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

Side by Side Diff: src/x87/full-codegen-x87.cc

Issue 642603004: X87: Updates to maintain flag --vector-ics (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 years, 2 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/x87/debug-x87.cc ('k') | 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/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 1269
1270 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) { 1270 void FullCodeGenerator::EmitLoadHomeObject(SuperReference* expr) {
1271 Comment cnmt(masm_, "[ SuperReference "); 1271 Comment cnmt(masm_, "[ SuperReference ");
1272 1272
1273 __ mov(LoadDescriptor::ReceiverRegister(), 1273 __ mov(LoadDescriptor::ReceiverRegister(),
1274 Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1274 Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1275 1275
1276 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol()); 1276 Handle<Symbol> home_object_symbol(isolate()->heap()->home_object_symbol());
1277 __ mov(LoadDescriptor::NameRegister(), home_object_symbol); 1277 __ mov(LoadDescriptor::NameRegister(), home_object_symbol);
1278 1278
1279 CallLoadIC(NOT_CONTEXTUAL, expr->HomeObjectFeedbackId()); 1279 if (FLAG_vector_ics) {
1280 __ mov(VectorLoadICDescriptor::SlotRegister(),
1281 Immediate(Smi::FromInt(expr->HomeObjectFeedbackSlot())));
1282 CallLoadIC(NOT_CONTEXTUAL);
1283 } else {
1284 CallLoadIC(NOT_CONTEXTUAL, expr->HomeObjectFeedbackId());
1285 }
1280 1286
1281 __ cmp(eax, isolate()->factory()->undefined_value()); 1287 __ cmp(eax, isolate()->factory()->undefined_value());
1282 Label done; 1288 Label done;
1283 __ j(not_equal, &done); 1289 __ j(not_equal, &done);
1284 __ CallRuntime(Runtime::kThrowNonMethodError, 0); 1290 __ CallRuntime(Runtime::kThrowNonMethodError, 0);
1285 __ bind(&done); 1291 __ bind(&done);
1286 } 1292 }
1287 1293
1288 1294
1289 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, 1295 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy,
(...skipping 3728 matching lines...) Expand 10 before | Expand all | Expand 10 after
5018 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5024 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5019 Assembler::target_address_at(call_target_address, 5025 Assembler::target_address_at(call_target_address,
5020 unoptimized_code)); 5026 unoptimized_code));
5021 return OSR_AFTER_STACK_CHECK; 5027 return OSR_AFTER_STACK_CHECK;
5022 } 5028 }
5023 5029
5024 5030
5025 } } // namespace v8::internal 5031 } } // namespace v8::internal
5026 5032
5027 #endif // V8_TARGET_ARCH_X87 5033 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/debug-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698