Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |