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

Side by Side Diff: src/factory.cc

Issue 328007: Stop throwing exceptions for out-of-range accesses to CanvasArrays.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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/factory.h ('k') | src/messages.js » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Vector< Handle<Object> > args) { 356 Vector< Handle<Object> > args) {
357 return NewError("MakeRangeError", type, args); 357 return NewError("MakeRangeError", type, args);
358 } 358 }
359 359
360 360
361 Handle<Object> Factory::NewRangeError(Handle<String> message) { 361 Handle<Object> Factory::NewRangeError(Handle<String> message) {
362 return NewError("$RangeError", message); 362 return NewError("$RangeError", message);
363 } 363 }
364 364
365 365
366 Handle<Object> Factory::NewIndexError(uint32_t index) {
367 Handle<Object> indexHandle = Handle<Object>(Heap::NumberFromUint32(index));
368 return NewRangeError("invalid_array_index",
369 HandleVector<Object>(&indexHandle,
370 1));
371 }
372
373
374 Handle<Object> Factory::NewSyntaxError(const char* type, Handle<JSArray> args) { 366 Handle<Object> Factory::NewSyntaxError(const char* type, Handle<JSArray> args) {
375 return NewError("MakeSyntaxError", type, args); 367 return NewError("MakeSyntaxError", type, args);
376 } 368 }
377 369
378 370
379 Handle<Object> Factory::NewSyntaxError(Handle<String> message) { 371 Handle<Object> Factory::NewSyntaxError(Handle<String> message) {
380 return NewError("$SyntaxError", message); 372 return NewError("$SyntaxError", message);
381 } 373 }
382 374
383 375
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 Execution::ConfigureInstance(instance, 945 Execution::ConfigureInstance(instance,
954 instance_template, 946 instance_template,
955 pending_exception); 947 pending_exception);
956 } else { 948 } else {
957 *pending_exception = false; 949 *pending_exception = false;
958 } 950 }
959 } 951 }
960 952
961 953
962 } } // namespace v8::internal 954 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698