Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 60b7d3b3ccb759487f411ade1ce7f20916fc2b55..e966e5ca949324294a70e7b4f3acc568790e0754 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2140,24 +2140,21 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
Handle<JSMessageObject> Factory::NewJSMessageObject( |
- Handle<String> type, |
- Handle<JSArray> arguments, |
- int start_position, |
- int end_position, |
- Handle<Object> script, |
+ MessageTemplate::Template message, Handle<Object> argument, |
+ int start_position, int end_position, Handle<Object> script, |
Handle<Object> stack_frames) { |
Handle<Map> map = message_object_map(); |
- Handle<JSMessageObject> message = New<JSMessageObject>(map, NEW_SPACE); |
- message->set_properties(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
- message->initialize_elements(); |
- message->set_elements(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
- message->set_type(*type); |
- message->set_arguments(*arguments); |
- message->set_start_position(start_position); |
- message->set_end_position(end_position); |
- message->set_script(*script); |
- message->set_stack_frames(*stack_frames); |
- return message; |
+ Handle<JSMessageObject> message_obj = New<JSMessageObject>(map, NEW_SPACE); |
+ message_obj->set_properties(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
+ message_obj->initialize_elements(); |
+ message_obj->set_elements(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
+ message_obj->set_type(message); |
+ message_obj->set_argument(*argument); |
+ message_obj->set_start_position(start_position); |
+ message_obj->set_end_position(end_position); |
+ message_obj->set_script(*script); |
+ message_obj->set_stack_frames(*stack_frames); |
+ return message_obj; |
} |