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

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

Issue 8992020: First part of inspecting local variables (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
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_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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 void CodeGenerator::FinalizePcDescriptors(const Code& code) { 352 void CodeGenerator::FinalizePcDescriptors(const Code& code) {
353 ASSERT(pc_descriptors_list_ != NULL); 353 ASSERT(pc_descriptors_list_ != NULL);
354 const PcDescriptors& descriptors = PcDescriptors::Handle( 354 const PcDescriptors& descriptors = PcDescriptors::Handle(
355 pc_descriptors_list_->FinalizePcDescriptors(code.EntryPoint())); 355 pc_descriptors_list_->FinalizePcDescriptors(code.EntryPoint()));
356 VerifyPcDescriptors( 356 VerifyPcDescriptors(
357 descriptors, parsed_function_.function().is_optimizable()); 357 descriptors, parsed_function_.function().is_optimizable());
358 code.set_pc_descriptors(descriptors); 358 code.set_pc_descriptors(descriptors);
359 } 359 }
360 360
361 361
362 void CodeGenerator::FinalizeVarDescriptors(const Code& code) {
363 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle(
364 parsed_function_.node_sequence()->scope()->GetVarDescriptors());
365 code.set_var_descriptors(var_descs);
366 }
367
368
362 void CodeGenerator::FinalizeExceptionHandlers(const Code& code) { 369 void CodeGenerator::FinalizeExceptionHandlers(const Code& code) {
363 ASSERT(exception_handlers_list_ != NULL); 370 ASSERT(exception_handlers_list_ != NULL);
364 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( 371 const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
365 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); 372 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint()));
366 code.set_exception_handlers(handlers); 373 code.set_exception_handlers(handlers);
367 } 374 }
368 375
369 376
370 void CodeGenerator::GenerateLoadVariable(Register dst, 377 void CodeGenerator::GenerateLoadVariable(Register dst,
371 const LocalVariable& variable) { 378 const LocalVariable& variable) {
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 message_buffer, kMessageBufferSize, 2795 message_buffer, kMessageBufferSize,
2789 format, args); 2796 format, args);
2790 va_end(args); 2797 va_end(args);
2791 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); 2798 Isolate::Current()->long_jump_base()->Jump(1, message_buffer);
2792 UNREACHABLE(); 2799 UNREACHABLE();
2793 } 2800 }
2794 2801
2795 } // namespace dart 2802 } // namespace dart
2796 2803
2797 #endif // defined TARGET_ARCH_X64 2804 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/code_generator_x64.h ('k') | runtime/vm/compiler.cc » ('j') | runtime/vm/debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698