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

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

Issue 9479004: Add a stubbed-out implementation of FlowGraphCompiler for ia32 and arm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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/code_generator_x64.h ('k') | runtime/vm/compiler.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/code_generator.h" 8 #include "vm/code_generator.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 __ nop(5); 211 __ nop(5);
212 } 212 }
213 213
214 214
215 // Verify assumptions (in debug mode only). 215 // Verify assumptions (in debug mode only).
216 // - No two deopt descriptors have the same node id (deoptimization). 216 // - No two deopt descriptors have the same node id (deoptimization).
217 // - No two ic-call descriptors have the same node id (type feedback). 217 // - No two ic-call descriptors have the same node id (type feedback).
218 // - No two descriptors of same kind have the same PC. 218 // - No two descriptors of same kind have the same PC.
219 // A function without unique ids is marked as non-optimizable (e.g., because of 219 // A function without unique ids is marked as non-optimizable (e.g., because of
220 // finally blocks). 220 // finally blocks).
221 static void VerifyPcDescriptors(const PcDescriptors& descriptors, 221 void CodeGenerator::VerifyPcDescriptors(const PcDescriptors& descriptors,
222 bool check_ids) { 222 bool check_ids) {
223 #if defined(DEBUG) 223 #if defined(DEBUG)
224 // TODO(srdjan): Implement a more efficient way to check, currently drop 224 // TODO(srdjan): Implement a more efficient way to check, currently drop
225 // the check for too large number of descriptors. 225 // the check for too large number of descriptors.
226 if (descriptors.Length() > 3000) { 226 if (descriptors.Length() > 3000) {
227 if (FLAG_trace_compiler) { 227 if (FLAG_trace_compiler) {
228 OS::Print("Not checking pc decriptors, length %d\n", 228 OS::Print("Not checking pc decriptors, length %d\n",
229 descriptors.Length()); 229 descriptors.Length());
230 } 230 }
231 return; 231 return;
232 } 232 }
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2695 const Error& error = Error::Handle( 2695 const Error& error = Error::Handle(
2696 Parser::FormatError(script, token_index, "Error", format, args)); 2696 Parser::FormatError(script, token_index, "Error", format, args));
2697 va_end(args); 2697 va_end(args);
2698 Isolate::Current()->long_jump_base()->Jump(1, error); 2698 Isolate::Current()->long_jump_base()->Jump(1, error);
2699 UNREACHABLE(); 2699 UNREACHABLE();
2700 } 2700 }
2701 2701
2702 } // namespace dart 2702 } // namespace dart
2703 2703
2704 #endif // defined TARGET_ARCH_X64 2704 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_x64.h ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698