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

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

Issue 9385022: Add PC descriptor for ret instruction (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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
« runtime/vm/code_generator_ia32.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | 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/opt_code_generator.h" 8 #include "vm/opt_code_generator.h"
9 9
10 #include "vm/assembler_macros.h" 10 #include "vm/assembler_macros.h"
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 return; 3050 return;
3051 } 3051 }
3052 ASSERT(!IsResultNeeded(node)); 3052 ASSERT(!IsResultNeeded(node));
3053 ASSERT(node->value() != NULL); 3053 ASSERT(node->value() != NULL);
3054 CodeGenInfo value_info(node->value()); 3054 CodeGenInfo value_info(node->value());
3055 value_info.set_request_result_in_eax(true); 3055 value_info.set_request_result_in_eax(true);
3056 node->value()->Visit(this); 3056 node->value()->Visit(this);
3057 if (!value_info.result_returned_in_eax()) { 3057 if (!value_info.result_returned_in_eax()) {
3058 __ popl(EAX); 3058 __ popl(EAX);
3059 } 3059 }
3060 GenerateReturnEpilog(); 3060 GenerateReturnEpilog(node);
3061 } 3061 }
3062 3062
3063 3063
3064 void OptimizingCodeGenerator::VisitSequenceNode(SequenceNode* node_sequence) { 3064 void OptimizingCodeGenerator::VisitSequenceNode(SequenceNode* node_sequence) {
3065 // TODO(srdjan): Allow limited forwarding of types across sequence nodes. 3065 // TODO(srdjan): Allow limited forwarding of types across sequence nodes.
3066 classes_for_locals_->Clear(); 3066 classes_for_locals_->Clear();
3067 const intptr_t num_context_variables = (node_sequence->scope() != NULL) ? 3067 const intptr_t num_context_variables = (node_sequence->scope() != NULL) ?
3068 node_sequence->scope()->num_context_variables() : 0; 3068 node_sequence->scope()->num_context_variables() : 0;
3069 if (FLAG_enable_type_checks || (num_context_variables > 0)) { 3069 if (FLAG_enable_type_checks || (num_context_variables > 0)) {
3070 CodeGenerator::VisitSequenceNode(node_sequence); 3070 CodeGenerator::VisitSequenceNode(node_sequence);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
3146 } 3146 }
3147 } 3147 }
3148 // TODO(srdjan): Implement unary kSUB (negate) Mint. 3148 // TODO(srdjan): Implement unary kSUB (negate) Mint.
3149 CodeGenerator::VisitUnaryOpNode(node); 3149 CodeGenerator::VisitUnaryOpNode(node);
3150 } 3150 }
3151 3151
3152 3152
3153 } // namespace dart 3153 } // namespace dart
3154 3154
3155 #endif // defined TARGET_ARCH_IA32 3155 #endif // defined TARGET_ARCH_IA32
OLDNEW
« runtime/vm/code_generator_ia32.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698