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

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

Issue 10806099: Some cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « runtime/vm/il_printer.cc ('k') | runtime/vm/locations.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 ASSERT(!exception_var().is_captured()); 1464 ASSERT(!exception_var().is_captured());
1465 ASSERT(!stacktrace_var().is_captured()); 1465 ASSERT(!stacktrace_var().is_captured());
1466 __ movl(Address(EBP, exception_var().index() * kWordSize), 1466 __ movl(Address(EBP, exception_var().index() * kWordSize),
1467 kExceptionObjectReg); 1467 kExceptionObjectReg);
1468 __ movl(Address(EBP, stacktrace_var().index() * kWordSize), 1468 __ movl(Address(EBP, stacktrace_var().index() * kWordSize),
1469 kStackTraceObjectReg); 1469 kStackTraceObjectReg);
1470 } 1470 }
1471 1471
1472 1472
1473 LocationSummary* CheckStackOverflowComp::MakeLocationSummary() const { 1473 LocationSummary* CheckStackOverflowComp::MakeLocationSummary() const {
1474 return LocationSummary::Make(0, 1474 const intptr_t kNumInputs = 0;
1475 Location::NoLocation(), 1475 const intptr_t kNumTemps = 0;
1476 LocationSummary::kCall); 1476 // TODO(vegorov): spilling is required only on an infrequently executed path.
1477 LocationSummary* summary = new LocationSummary(kNumInputs,
1478 kNumTemps,
1479 LocationSummary::kCall);
1480 return summary;
1477 } 1481 }
1478 1482
1479 1483
1480 void CheckStackOverflowComp::EmitNativeCode(FlowGraphCompiler* compiler) { 1484 void CheckStackOverflowComp::EmitNativeCode(FlowGraphCompiler* compiler) {
1481 __ cmpl(ESP, 1485 __ cmpl(ESP,
1482 Address::Absolute(Isolate::Current()->stack_limit_address())); 1486 Address::Absolute(Isolate::Current()->stack_limit_address()));
1483 Label no_stack_overflow; 1487 Label no_stack_overflow;
1484 __ j(ABOVE, &no_stack_overflow); 1488 __ j(ABOVE, &no_stack_overflow);
1485 compiler->GenerateCallRuntime(cid(), 1489 compiler->GenerateCallRuntime(cid(),
1486 token_pos(), 1490 token_pos(),
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 ASSERT(locs()->out().reg() == EAX); 2193 ASSERT(locs()->out().reg() == EAX);
2190 __ CompareObject(locs()->out().reg(), compiler->bool_true()); 2194 __ CompareObject(locs()->out().reg(), compiler->bool_true());
2191 EmitBranchOnCondition(compiler, branch_condition); 2195 EmitBranchOnCondition(compiler, branch_condition);
2192 } 2196 }
2193 2197
2194 } // namespace dart 2198 } // namespace dart
2195 2199
2196 #undef __ 2200 #undef __
2197 2201
2198 #endif // defined TARGET_ARCH_X64 2202 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/locations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698