Author: [email protected]
Date: Tue Jan 27 01:40:35 2009
New Revision: 1170
Modified:
branches/experimental/toiger/src/codegen-ia32.cc
Log:
Experimental: ensure that the virtual frame state is correct when
visiting catch extension objects.
Review URL: http://codereview.chromium.org/19011
Modified: branches/experimental/toiger/src/codegen-ia32.cc
==============================================================================
--- branches/experimental/toiger/src/codegen-ia32.cc (original)
+++ branches/experimental/toiger/src/codegen-ia32.cc Tue Jan 27 01:40:35
2009
@@ -3100,13 +3100,15 @@
void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* node) {
+ ASSERT(!in_spilled_code());
// Call runtime routine to allocate the catch extension object and
// assign the exception value to the catch variable.
- Comment cmnt(masm_, "[CatchExtensionObject ");
+ Comment cmnt(masm_, "[ CatchExtensionObject");
Load(node->key());
Load(node->value());
- __ CallRuntime(Runtime::kCreateCatchExtensionObject, 2);
- frame_->Push(eax);
+ Result result =
+ frame_->CallRuntime(Runtime::kCreateCatchExtensionObject, 2);
+ frame_->Push(&result);
}
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---