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

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

Issue 8803025: Fix linux build (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years 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 | « no previous file | runtime/vm/debugger.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/code_generator.h" 8 #include "vm/code_generator.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // TODO(srdjan): Implement a more efficient way to check, currently drop 313 // TODO(srdjan): Implement a more efficient way to check, currently drop
314 // the check for too large number of descriptors. 314 // the check for too large number of descriptors.
315 if (descriptors.Length() > 3000) { 315 if (descriptors.Length() > 3000) {
316 if (FLAG_trace_compiler) { 316 if (FLAG_trace_compiler) {
317 OS::Print("Not checking pc decriptors, length %d\n", 317 OS::Print("Not checking pc decriptors, length %d\n",
318 descriptors.Length()); 318 descriptors.Length());
319 } 319 }
320 return; 320 return;
321 } 321 }
322 for (intptr_t i = 0; i < descriptors.Length(); i++) { 322 for (intptr_t i = 0; i < descriptors.Length(); i++) {
323 intptr_t pc = descriptors.PC(i); 323 uword pc = descriptors.PC(i);
324 PcDescriptors::Kind kind = descriptors.DescriptorKind(i); 324 PcDescriptors::Kind kind = descriptors.DescriptorKind(i);
325 // 'node_id' is set for kDeopt and kIcCall and must be unique for one kind. 325 // 'node_id' is set for kDeopt and kIcCall and must be unique for one kind.
326 intptr_t node_id = AstNode::kNoId; 326 intptr_t node_id = AstNode::kNoId;
327 if (check_ids) { 327 if (check_ids) {
328 if ((descriptors.DescriptorKind(i) == PcDescriptors::kDeopt) || 328 if ((descriptors.DescriptorKind(i) == PcDescriptors::kDeopt) ||
329 (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall)) { 329 (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall)) {
330 node_id = descriptors.NodeId(i); 330 node_id = descriptors.NodeId(i);
331 } 331 }
332 } 332 }
333 for (intptr_t k = i + 1; k < descriptors.Length(); k++) { 333 for (intptr_t k = i + 1; k < descriptors.Length(); k++) {
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2746 message_buffer, kMessageBufferSize, 2746 message_buffer, kMessageBufferSize,
2747 format, args); 2747 format, args);
2748 va_end(args); 2748 va_end(args);
2749 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); 2749 Isolate::Current()->long_jump_base()->Jump(1, message_buffer);
2750 UNREACHABLE(); 2750 UNREACHABLE();
2751 } 2751 }
2752 2752
2753 } // namespace dart 2753 } // namespace dart
2754 2754
2755 #endif // defined TARGET_ARCH_IA32 2755 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698