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/compiler/ast-graph-builder.cc

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make mips work 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/code-stubs.cc ('k') | src/debug.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 1500
1501 // Dynamic dispatch after the finally-block. 1501 // Dynamic dispatch after the finally-block.
1502 commands->ApplyDeferredCommands(token, result); 1502 commands->ApplyDeferredCommands(token, result);
1503 1503
1504 // TODO(mstarzinger): Remove bailout once everything works. 1504 // TODO(mstarzinger): Remove bailout once everything works.
1505 if (!FLAG_turbo_try_finally) SetStackOverflow(); 1505 if (!FLAG_turbo_try_finally) SetStackOverflow();
1506 } 1506 }
1507 1507
1508 1508
1509 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) { 1509 void AstGraphBuilder::VisitDebuggerStatement(DebuggerStatement* stmt) {
1510 Node* node = NewNode(javascript()->CallRuntime(Runtime::kDebugBreak, 0)); 1510 Node* node =
1511 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement, 0));
1511 PrepareFrameState(node, stmt->DebugBreakId()); 1512 PrepareFrameState(node, stmt->DebugBreakId());
1512 environment()->MarkAllLocalsLive(); 1513 environment()->MarkAllLocalsLive();
1513 } 1514 }
1514 1515
1515 1516
1516 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) { 1517 void AstGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
1517 Node* context = current_context(); 1518 Node* context = current_context();
1518 1519
1519 // Find or build a shared function info. 1520 // Find or build a shared function info.
1520 Handle<SharedFunctionInfo> shared_info = 1521 Handle<SharedFunctionInfo> shared_info =
(...skipping 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after
4311 // Phi does not exist yet, introduce one. 4312 // Phi does not exist yet, introduce one.
4312 value = NewPhi(inputs, value, control); 4313 value = NewPhi(inputs, value, control);
4313 value->ReplaceInput(inputs - 1, other); 4314 value->ReplaceInput(inputs - 1, other);
4314 } 4315 }
4315 return value; 4316 return value;
4316 } 4317 }
4317 4318
4318 } // namespace compiler 4319 } // namespace compiler
4319 } // namespace internal 4320 } // namespace internal
4320 } // namespace v8 4321 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698