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

Side by Side Diff: src/factory.cc

Issue 1130073005: Revert of Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « src/factory.h ('k') | src/hydrogen.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 Handle<HeapNumber> Factory::NewHeapNumber(double value, 1069 Handle<HeapNumber> Factory::NewHeapNumber(double value,
1070 MutableMode mode, 1070 MutableMode mode,
1071 PretenureFlag pretenure) { 1071 PretenureFlag pretenure) {
1072 CALL_HEAP_FUNCTION( 1072 CALL_HEAP_FUNCTION(
1073 isolate(), 1073 isolate(),
1074 isolate()->heap()->AllocateHeapNumber(value, mode, pretenure), 1074 isolate()->heap()->AllocateHeapNumber(value, mode, pretenure),
1075 HeapNumber); 1075 HeapNumber);
1076 } 1076 }
1077 1077
1078 1078
1079 Handle<Object> Factory::NewTypeError(const char* message,
1080 Vector<Handle<Object> > args) {
1081 return NewError("MakeTypeError", message, args);
1082 }
1083
1084
1079 Handle<Object> Factory::NewTypeError(Handle<String> message) { 1085 Handle<Object> Factory::NewTypeError(Handle<String> message) {
1080 return NewError("$TypeError", message); 1086 return NewError("$TypeError", message);
1081 } 1087 }
1082 1088
1083 1089
1090 Handle<Object> Factory::NewRangeError(const char* message,
1091 Vector<Handle<Object> > args) {
1092 return NewError("MakeRangeError", message, args);
1093 }
1094
1095
1084 Handle<Object> Factory::NewRangeError(Handle<String> message) { 1096 Handle<Object> Factory::NewRangeError(Handle<String> message) {
1085 return NewError("$RangeError", message); 1097 return NewError("$RangeError", message);
1086 } 1098 }
1087 1099
1088 1100
1089 Handle<Object> Factory::NewSyntaxError(const char* message, 1101 Handle<Object> Factory::NewSyntaxError(const char* message,
1090 Handle<JSArray> args) { 1102 Handle<JSArray> args) {
1091 return NewError("MakeSyntaxError", message, args); 1103 return NewError("MakeSyntaxError", message, args);
1092 } 1104 }
1093 1105
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 return Handle<Object>::null(); 2481 return Handle<Object>::null();
2470 } 2482 }
2471 2483
2472 2484
2473 Handle<Object> Factory::ToBoolean(bool value) { 2485 Handle<Object> Factory::ToBoolean(bool value) {
2474 return value ? true_value() : false_value(); 2486 return value ? true_value() : false_value();
2475 } 2487 }
2476 2488
2477 2489
2478 } } // namespace v8::internal 2490 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698