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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 14308009: Detect leaf optimized methods and skip stack check overflow test in those, unless it is in a loop (… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 const intptr_t kNumInputs = 1; 1504 const intptr_t kNumInputs = 1;
1505 const intptr_t kNumTemps = 0; 1505 const intptr_t kNumTemps = 0;
1506 LocationSummary* summary = 1506 LocationSummary* summary =
1507 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 1507 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
1508 summary->set_in(0, Location::RegisterLocation(CTX)); 1508 summary->set_in(0, Location::RegisterLocation(CTX));
1509 return summary; 1509 return summary;
1510 } 1510 }
1511 1511
1512 1512
1513 void StoreContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 1513 void StoreContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
1514 // Nothing to do. Context register were loaded by register allocator. 1514 // Nothing to do. Context register were loaded by register allocator.
Kevin Millikin (Google) 2013/04/18 10:05:28 I like the space. If you're going to make a chang
srdjan 2013/04/18 18:15:57 Added space back, changed were to was and added th
1515 ASSERT(locs()->in(0).reg() == CTX); 1515 ASSERT(locs()->in(0).reg() == CTX);
1516 } 1516 }
1517 1517
1518 1518
1519 StrictCompareInstr::StrictCompareInstr(Token::Kind kind, 1519 StrictCompareInstr::StrictCompareInstr(Token::Kind kind,
1520 Value* left, 1520 Value* left,
1521 Value* right) 1521 Value* right)
1522 : ComparisonInstr(kind, left, right), 1522 : ComparisonInstr(kind, left, right),
1523 needs_number_check_(FLAG_new_identity_spec) { 1523 needs_number_check_(FLAG_new_identity_spec) {
1524 ASSERT((kind == Token::kEQ_STRICT) || (kind == Token::kNE_STRICT)); 1524 ASSERT((kind == Token::kEQ_STRICT) || (kind == Token::kNE_STRICT));
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2388 default: 2388 default:
2389 UNREACHABLE(); 2389 UNREACHABLE();
2390 } 2390 }
2391 return kPowRuntimeEntry; 2391 return kPowRuntimeEntry;
2392 } 2392 }
2393 2393
2394 2394
2395 #undef __ 2395 #undef __
2396 2396
2397 } // namespace dart 2397 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698