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

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

Issue 978123003: Merged INLINE_OPTIMIZED intrinsic type into INLINE. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed feedback. Created 5 years, 9 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/x64/full-codegen-x64.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.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_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 4477 matching lines...) Expand 10 before | Expand all | Expand 10 after
4488 DCHECK(expr->arguments()->length() == 0); 4488 DCHECK(expr->arguments()->length() == 0);
4489 ExternalReference debug_is_active = 4489 ExternalReference debug_is_active =
4490 ExternalReference::debug_is_active_address(isolate()); 4490 ExternalReference::debug_is_active_address(isolate());
4491 __ movzx_b(eax, Operand::StaticVariable(debug_is_active)); 4491 __ movzx_b(eax, Operand::StaticVariable(debug_is_active));
4492 __ SmiTag(eax); 4492 __ SmiTag(eax);
4493 context()->Plug(eax); 4493 context()->Plug(eax);
4494 } 4494 }
4495 4495
4496 4496
4497 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { 4497 void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) {
4498 if (expr->function() != NULL && 4498 InlineFunctionGenerator generator = FindInlineFunctionGenerator(expr);
4499 expr->function()->intrinsic_type == Runtime::INLINE) { 4499 if (generator != nullptr) {
4500 Comment cmnt(masm_, "[ InlineRuntimeCall"); 4500 Comment cmnt(masm_, "[ InlineRuntimeCall");
4501 EmitInlineRuntimeCall(expr); 4501 EmitInlineRuntimeCall(expr, generator);
4502 return; 4502 return;
4503 } 4503 }
4504 4504
4505 Comment cmnt(masm_, "[ CallRuntime"); 4505 Comment cmnt(masm_, "[ CallRuntime");
4506 ZoneList<Expression*>* args = expr->arguments(); 4506 ZoneList<Expression*>* args = expr->arguments();
4507 4507
4508 if (expr->is_jsruntime()) { 4508 if (expr->is_jsruntime()) {
4509 // Push the builtins object as receiver. 4509 // Push the builtins object as receiver.
4510 __ mov(eax, GlobalObjectOperand()); 4510 __ mov(eax, GlobalObjectOperand());
4511 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); 4511 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset));
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5351 Assembler::target_address_at(call_target_address, 5351 Assembler::target_address_at(call_target_address,
5352 unoptimized_code)); 5352 unoptimized_code));
5353 return OSR_AFTER_STACK_CHECK; 5353 return OSR_AFTER_STACK_CHECK;
5354 } 5354 }
5355 5355
5356 5356
5357 } } // namespace v8::internal 5357 } } // namespace v8::internal
5358 5358
5359 #endif // V8_TARGET_ARCH_X87 5359 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698