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

Side by Side Diff: src/factory.h

Issue 10443085: Report syntax errors in natives when building with mksnapshot. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); 331 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info);
332 332
333 Handle<Object> ToObject(Handle<Object> object); 333 Handle<Object> ToObject(Handle<Object> object);
334 Handle<Object> ToObject(Handle<Object> object, 334 Handle<Object> ToObject(Handle<Object> object,
335 Handle<Context> global_context); 335 Handle<Context> global_context);
336 336
337 // Interface for creating error objects. 337 // Interface for creating error objects.
338 338
339 Handle<Object> NewError(const char* maker, const char* type, 339 Handle<Object> NewError(const char* maker, const char* type,
340 Handle<JSArray> args); 340 Handle<JSArray> args);
341 Handle<String> EmergencyNewError(const char* type, Handle<JSArray> args);
ulan 2012/05/31 08:48:52 Consider NewEmergencyError().
Erik Corry 2012/05/31 12:25:17 The error is normal, it's just happening at a bad
341 Handle<Object> NewError(const char* maker, const char* type, 342 Handle<Object> NewError(const char* maker, const char* type,
342 Vector< Handle<Object> > args); 343 Vector< Handle<Object> > args);
343 Handle<Object> NewError(const char* type, 344 Handle<Object> NewError(const char* type,
344 Vector< Handle<Object> > args); 345 Vector< Handle<Object> > args);
345 Handle<Object> NewError(Handle<String> message); 346 Handle<Object> NewError(Handle<String> message);
346 Handle<Object> NewError(const char* constructor, 347 Handle<Object> NewError(const char* constructor,
347 Handle<String> message); 348 Handle<String> message);
348 349
349 Handle<Object> NewTypeError(const char* type, 350 Handle<Object> NewTypeError(const char* type,
350 Vector< Handle<Object> > args); 351 Vector< Handle<Object> > args);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Update the map cache in the global context with (keys, map) 513 // Update the map cache in the global context with (keys, map)
513 Handle<MapCache> AddToMapCache(Handle<Context> context, 514 Handle<MapCache> AddToMapCache(Handle<Context> context,
514 Handle<FixedArray> keys, 515 Handle<FixedArray> keys,
515 Handle<Map> map); 516 Handle<Map> map);
516 }; 517 };
517 518
518 519
519 } } // namespace v8::internal 520 } } // namespace v8::internal
520 521
521 #endif // V8_FACTORY_H_ 522 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698