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

Unified Diff: runtime/vm/code_generator_ia32.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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_generator_ia32.cc
===================================================================
--- runtime/vm/code_generator_ia32.cc (revision 2587)
+++ runtime/vm/code_generator_ia32.cc (working copy)
@@ -353,6 +353,13 @@
}
+void CodeGenerator::FinalizeVarDescriptors(const Code& code) {
+ const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle(
+ parsed_function_.node_sequence()->scope()->GetVarDescriptors());
+ code.set_var_descriptors(var_descs);
+}
+
+
void CodeGenerator::FinalizeExceptionHandlers(const Code& code) {
ASSERT(exception_handlers_list_ != NULL);
const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
@@ -544,7 +551,7 @@
}
if (function.IsClosureFunction()) {
GenerateCallRuntime(AstNode::kNoId,
- function.token_index(),
+ 0,
kClosureArgumentMismatchRuntimeEntry);
} else {
__ Stop("Wrong number of arguments");
@@ -669,7 +676,7 @@
__ Bind(&wrong_num_arguments);
if (function.IsClosureFunction()) {
GenerateCallRuntime(AstNode::kNoId,
- function.token_index(),
+ 0,
kClosureArgumentMismatchRuntimeEntry);
} else {
// Invoke noSuchMethod function.
@@ -734,7 +741,7 @@
Label no_stack_overflow;
__ j(ABOVE, &no_stack_overflow);
GenerateCallRuntime(AstNode::kNoId,
- function.token_index(),
+ 0,
kStackOverflowRuntimeEntry);
__ Bind(&no_stack_overflow);
}

Powered by Google App Engine
This is Rietveld 408576698