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

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

Issue 10579020: Support captured variables in debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « no previous file | 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_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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } else { 233 } else {
234 // Finalize the stack map array and add it to the code object. 234 // Finalize the stack map array and add it to the code object.
235 code.set_stackmaps( 235 code.set_stackmaps(
236 Array::Handle(stackmap_builder_->FinalizeStackmaps(code))); 236 Array::Handle(stackmap_builder_->FinalizeStackmaps(code)));
237 } 237 }
238 } 238 }
239 239
240 240
241 void CodeGenerator::FinalizeVarDescriptors(const Code& code) { 241 void CodeGenerator::FinalizeVarDescriptors(const Code& code) {
242 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle( 242 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle(
243 parsed_function_.node_sequence()->scope()->GetVarDescriptors()); 243 parsed_function_.node_sequence()->scope()->GetVarDescriptors(
244 parsed_function_.function()));
244 code.set_var_descriptors(var_descs); 245 code.set_var_descriptors(var_descs);
245 } 246 }
246 247
247 248
248 void CodeGenerator::FinalizeExceptionHandlers(const Code& code) { 249 void CodeGenerator::FinalizeExceptionHandlers(const Code& code) {
249 ASSERT(exception_handlers_list_ != NULL); 250 ASSERT(exception_handlers_list_ != NULL);
250 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( 251 const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
251 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); 252 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint()));
252 code.set_exception_handlers(handlers); 253 code.set_exception_handlers(handlers);
253 } 254 }
(...skipping 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 const Error& error = Error::Handle( 2965 const Error& error = Error::Handle(
2965 Parser::FormatError(script, token_index, "Error", format, args)); 2966 Parser::FormatError(script, token_index, "Error", format, args));
2966 va_end(args); 2967 va_end(args);
2967 Isolate::Current()->long_jump_base()->Jump(1, error); 2968 Isolate::Current()->long_jump_base()->Jump(1, error);
2968 UNREACHABLE(); 2969 UNREACHABLE();
2969 } 2970 }
2970 2971
2971 } // namespace dart 2972 } // namespace dart
2972 2973
2973 #endif // defined TARGET_ARCH_IA32 2974 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698