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

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

Issue 595863002: Adding more missing deoptimization points in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 2539 matching lines...) Expand 10 before | Expand all | Expand 10 after
2550 2550
2551 // Push a copy of the function (found below the arguments) and 2551 // Push a copy of the function (found below the arguments) and
2552 // resolve eval. 2552 // resolve eval.
2553 __ Peek(x10, (arg_count + 1) * kPointerSize); 2553 __ Peek(x10, (arg_count + 1) * kPointerSize);
2554 __ Push(x10); 2554 __ Push(x10);
2555 EmitResolvePossiblyDirectEval(arg_count); 2555 EmitResolvePossiblyDirectEval(arg_count);
2556 2556
2557 // The runtime call returns a pair of values in x0 (function) and 2557 // The runtime call returns a pair of values in x0 (function) and
2558 // x1 (receiver). Touch up the stack with the right values. 2558 // x1 (receiver). Touch up the stack with the right values.
2559 __ PokePair(x1, x0, arg_count * kPointerSize); 2559 __ PokePair(x1, x0, arg_count * kPointerSize);
2560
2561 PrepareForBailoutForId(expr->EvalOrLookupId(), NO_REGISTERS);
2560 } 2562 }
2561 2563
2562 // Record source position for debugger. 2564 // Record source position for debugger.
2563 SetSourcePosition(expr->position()); 2565 SetSourcePosition(expr->position());
2564 2566
2565 // Call the evaluated function. 2567 // Call the evaluated function.
2566 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); 2568 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS);
2567 __ Peek(x1, (arg_count + 1) * kXRegSize); 2569 __ Peek(x1, (arg_count + 1) * kXRegSize);
2568 __ CallStub(&stub); 2570 __ CallStub(&stub);
2569 RecordJSReturnSite(expr); 2571 RecordJSReturnSite(expr);
(...skipping 15 matching lines...) Expand all
2585 EmitDynamicLookupFastCase(proxy, NOT_INSIDE_TYPEOF, &slow, &done); 2587 EmitDynamicLookupFastCase(proxy, NOT_INSIDE_TYPEOF, &slow, &done);
2586 } 2588 }
2587 2589
2588 __ Bind(&slow); 2590 __ Bind(&slow);
2589 // Call the runtime to find the function to call (returned in x0) 2591 // Call the runtime to find the function to call (returned in x0)
2590 // and the object holding it (returned in x1). 2592 // and the object holding it (returned in x1).
2591 __ Mov(x10, Operand(proxy->name())); 2593 __ Mov(x10, Operand(proxy->name()));
2592 __ Push(context_register(), x10); 2594 __ Push(context_register(), x10);
2593 __ CallRuntime(Runtime::kLoadLookupSlot, 2); 2595 __ CallRuntime(Runtime::kLoadLookupSlot, 2);
2594 __ Push(x0, x1); // Receiver, function. 2596 __ Push(x0, x1); // Receiver, function.
2597 PrepareForBailoutForId(expr->EvalOrLookupId(), NO_REGISTERS);
2595 2598
2596 // If fast case code has been generated, emit code to push the 2599 // If fast case code has been generated, emit code to push the
2597 // function and receiver and have the slow path jump around this 2600 // function and receiver and have the slow path jump around this
2598 // code. 2601 // code.
2599 if (done.is_linked()) { 2602 if (done.is_linked()) {
2600 Label call; 2603 Label call;
2601 __ B(&call); 2604 __ B(&call);
2602 __ Bind(&done); 2605 __ Bind(&done);
2603 // Push function. 2606 // Push function.
2604 // The receiver is implicitly the global receiver. Indicate this 2607 // The receiver is implicitly the global receiver. Indicate this
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after
5042 return previous_; 5045 return previous_;
5043 } 5046 }
5044 5047
5045 5048
5046 #undef __ 5049 #undef __
5047 5050
5048 5051
5049 } } // namespace v8::internal 5052 } } // namespace v8::internal
5050 5053
5051 #endif // V8_TARGET_ARCH_ARM64 5054 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698