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

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

Issue 10800037: New linear scan allocator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Kevin's comments Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.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 (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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 __ leal(ESP, 42 __ leal(ESP,
43 Address(EBP, ParsedFunction::kFirstLocalSlotIndex * kWordSize)); 43 Address(EBP, ParsedFunction::kFirstLocalSlotIndex * kWordSize));
44 44
45 const GrowableArray<Value*>& values = deoptimization_env_->values(); 45 const GrowableArray<Value*>& values = deoptimization_env_->values();
46 46
47 for (intptr_t i = 0; i < values.length(); i++) { 47 for (intptr_t i = 0; i < values.length(); i++) {
48 const Location loc = deoptimization_env_->LocationAt(i); 48 const Location loc = deoptimization_env_->LocationAt(i);
49 if (loc.IsInvalid()) { 49 if (loc.IsInvalid()) {
50 ASSERT(values[i]->IsConstant()); 50 ASSERT(values[i]->IsConstant());
51 __ PushObject(values[i]->AsConstant()->value()); 51 __ PushObject(values[i]->AsConstant()->value());
52 } else if (loc.IsRegister()) {
53 __ pushl(loc.reg());
52 } else { 54 } else {
53 ASSERT(loc.IsRegister()); 55 compiler->Bailout("unsupported deoptimization state");
54 __ pushl(loc.reg());
55 } 56 }
56 } 57 }
57 } 58 }
58 59
59 if (compiler->IsLeaf()) { 60 if (compiler->IsLeaf()) {
60 Label L; 61 Label L;
61 __ call(&L); 62 __ call(&L);
62 const intptr_t offset = assem->CodeSize(); 63 const intptr_t offset = assem->CodeSize();
63 __ Bind(&L); 64 __ Bind(&L);
64 __ popl(EAX); 65 __ popl(EAX);
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 __ popl(ECX); 1227 __ popl(ECX);
1227 __ popl(EAX); 1228 __ popl(EAX);
1228 } 1229 }
1229 1230
1230 1231
1231 #undef __ 1232 #undef __
1232 1233
1233 } // namespace dart 1234 } // namespace dart
1234 1235
1235 #endif // defined TARGET_ARCH_IA32 1236 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698