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

Side by Side Diff: src/factory.cc

Issue 1126043004: Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed and rebased 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
1085 Handle<Object> Factory::NewTypeError(Handle<String> message) { 1079 Handle<Object> Factory::NewTypeError(Handle<String> message) {
1086 return NewError("$TypeError", message); 1080 return NewError("$TypeError", message);
1087 } 1081 }
1088 1082
1089 1083
1090 Handle<Object> Factory::NewRangeError(const char* message,
1091 Vector<Handle<Object> > args) {
1092 return NewError("MakeRangeError", message, args);
1093 }
1094
1095
1096 Handle<Object> Factory::NewRangeError(Handle<String> message) { 1084 Handle<Object> Factory::NewRangeError(Handle<String> message) {
1097 return NewError("$RangeError", message); 1085 return NewError("$RangeError", message);
1098 } 1086 }
1099 1087
1100 1088
1101 Handle<Object> Factory::NewSyntaxError(const char* message, 1089 Handle<Object> Factory::NewSyntaxError(const char* message,
1102 Handle<JSArray> args) { 1090 Handle<JSArray> args) {
1103 return NewError("MakeSyntaxError", message, args); 1091 return NewError("MakeSyntaxError", message, args);
1104 } 1092 }
1105 1093
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 return Handle<Object>::null(); 2469 return Handle<Object>::null();
2482 } 2470 }
2483 2471
2484 2472
2485 Handle<Object> Factory::ToBoolean(bool value) { 2473 Handle<Object> Factory::ToBoolean(bool value) {
2486 return value ? true_value() : false_value(); 2474 return value ? true_value() : false_value();
2487 } 2475 }
2488 2476
2489 2477
2490 } } // namespace v8::internal 2478 } } // 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