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

Side by Side Diff: src/messages.cc

Issue 239113009: Reland "Move functions from handles.cc to where they belong." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 8 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 | « src/log.cc ('k') | src/objects.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 Handle<JSArray> arguments_handle = 72 Handle<JSArray> arguments_handle =
73 factory->NewJSArrayWithElements(arguments_elements); 73 factory->NewJSArrayWithElements(arguments_elements);
74 74
75 int start = 0; 75 int start = 0;
76 int end = 0; 76 int end = 0;
77 Handle<Object> script_handle = factory->undefined_value(); 77 Handle<Object> script_handle = factory->undefined_value();
78 if (loc) { 78 if (loc) {
79 start = loc->start_pos(); 79 start = loc->start_pos();
80 end = loc->end_pos(); 80 end = loc->end_pos();
81 script_handle = GetScriptWrapper(loc->script()); 81 script_handle = Script::GetWrapper(loc->script());
82 } 82 }
83 83
84 Handle<Object> stack_frames_handle = stack_frames.is_null() 84 Handle<Object> stack_frames_handle = stack_frames.is_null()
85 ? Handle<Object>::cast(factory->undefined_value()) 85 ? Handle<Object>::cast(factory->undefined_value())
86 : Handle<Object>::cast(stack_frames); 86 : Handle<Object>::cast(stack_frames);
87 87
88 Handle<JSMessageObject> message = 88 Handle<JSMessageObject> message =
89 factory->NewJSMessageObject(type_handle, 89 factory->NewJSMessageObject(type_handle,
90 arguments_handle, 90 arguments_handle,
91 start, 91 start,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 SmartArrayPointer<char> MessageHandler::GetLocalizedMessage( 180 SmartArrayPointer<char> MessageHandler::GetLocalizedMessage(
181 Isolate* isolate, 181 Isolate* isolate,
182 Handle<Object> data) { 182 Handle<Object> data) {
183 HandleScope scope(isolate); 183 HandleScope scope(isolate);
184 return GetMessage(isolate, data)->ToCString(DISALLOW_NULLS); 184 return GetMessage(isolate, data)->ToCString(DISALLOW_NULLS);
185 } 185 }
186 186
187 187
188 } } // namespace v8::internal 188 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698