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

Side by Side Diff: src/factory.h

Issue 200473003: Make invalid LHSs a parse-time (reference) error (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment Created 6 years, 9 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/arm/full-codegen-arm.cc ('k') | src/factory.cc » ('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 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 Handle<Object> NewRangeError(const char* message, 430 Handle<Object> NewRangeError(const char* message,
431 Vector< Handle<Object> > args); 431 Vector< Handle<Object> > args);
432 Handle<Object> NewRangeError(Handle<String> message); 432 Handle<Object> NewRangeError(Handle<String> message);
433 433
434 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); 434 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args);
435 Handle<Object> NewSyntaxError(Handle<String> message); 435 Handle<Object> NewSyntaxError(Handle<String> message);
436 436
437 Handle<Object> NewReferenceError(const char* message, 437 Handle<Object> NewReferenceError(const char* message,
438 Vector< Handle<Object> > args); 438 Vector< Handle<Object> > args);
439 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args);
439 Handle<Object> NewReferenceError(Handle<String> message); 440 Handle<Object> NewReferenceError(Handle<String> message);
440 441
441 Handle<Object> NewEvalError(const char* message, 442 Handle<Object> NewEvalError(const char* message,
442 Vector< Handle<Object> > args); 443 Vector< Handle<Object> > args);
443 444
444 445
445 Handle<JSFunction> NewFunction(Handle<String> name, 446 Handle<JSFunction> NewFunction(Handle<String> name,
446 InstanceType type, 447 InstanceType type,
447 int instance_size, 448 int instance_size,
448 Handle<Code> code, 449 Handle<Code> code,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 isolate()); 600 isolate());
600 } else { 601 } else {
601 return NewNumber(static_cast<double>(value), pretenure); 602 return NewNumber(static_cast<double>(value), pretenure);
602 } 603 }
603 } 604 }
604 605
605 606
606 } } // namespace v8::internal 607 } } // namespace v8::internal
607 608
608 #endif // V8_FACTORY_H_ 609 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698