OLD | NEW |
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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 } | 1186 } |
1187 | 1187 |
1188 | 1188 |
1189 Handle<Object> Factory::NewTypeError(MessageTemplate::Template template_index, | 1189 Handle<Object> Factory::NewTypeError(MessageTemplate::Template template_index, |
1190 Handle<Object> arg0, Handle<Object> arg1, | 1190 Handle<Object> arg0, Handle<Object> arg1, |
1191 Handle<Object> arg2) { | 1191 Handle<Object> arg2) { |
1192 return NewError("MakeTypeError", template_index, arg0, arg1, arg2); | 1192 return NewError("MakeTypeError", template_index, arg0, arg1, arg2); |
1193 } | 1193 } |
1194 | 1194 |
1195 | 1195 |
| 1196 Handle<Object> Factory::NewRangeError(MessageTemplate::Template template_index, |
| 1197 Handle<Object> arg0, Handle<Object> arg1, |
| 1198 Handle<Object> arg2) { |
| 1199 return NewError("MakeRangeError", template_index, arg0, arg1, arg2); |
| 1200 } |
| 1201 |
| 1202 |
1196 Handle<Object> Factory::NewEvalError(MessageTemplate::Template template_index, | 1203 Handle<Object> Factory::NewEvalError(MessageTemplate::Template template_index, |
1197 Handle<Object> arg0, Handle<Object> arg1, | 1204 Handle<Object> arg0, Handle<Object> arg1, |
1198 Handle<Object> arg2) { | 1205 Handle<Object> arg2) { |
1199 return NewError("MakeEvalError", template_index, arg0, arg1, arg2); | 1206 return NewError("MakeEvalError", template_index, arg0, arg1, arg2); |
1200 } | 1207 } |
1201 | 1208 |
1202 | 1209 |
1203 Handle<String> Factory::EmergencyNewError(const char* message, | 1210 Handle<String> Factory::EmergencyNewError(const char* message, |
1204 Handle<JSArray> args) { | 1211 Handle<JSArray> args) { |
1205 const int kBufferSize = 1000; | 1212 const int kBufferSize = 1000; |
(...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 return Handle<Object>::null(); | 2484 return Handle<Object>::null(); |
2478 } | 2485 } |
2479 | 2486 |
2480 | 2487 |
2481 Handle<Object> Factory::ToBoolean(bool value) { | 2488 Handle<Object> Factory::ToBoolean(bool value) { |
2482 return value ? true_value() : false_value(); | 2489 return value ? true_value() : false_value(); |
2483 } | 2490 } |
2484 | 2491 |
2485 | 2492 |
2486 } } // namespace v8::internal | 2493 } } // namespace v8::internal |
OLD | NEW |