OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 } | 1235 } |
1236 | 1236 |
1237 | 1237 |
1238 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { | 1238 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(Handle<String> name) { |
1239 CALL_HEAP_FUNCTION(isolate(), | 1239 CALL_HEAP_FUNCTION(isolate(), |
1240 isolate()->heap()->AllocateSharedFunctionInfo(*name), | 1240 isolate()->heap()->AllocateSharedFunctionInfo(*name), |
1241 SharedFunctionInfo); | 1241 SharedFunctionInfo); |
1242 } | 1242 } |
1243 | 1243 |
1244 | 1244 |
1245 Handle<OptimizedCodeEntry> Factory::NewOptimizedCodeEntry( | |
1246 Handle<Context> native_context, | |
1247 Handle<JSFunction> function, | |
1248 Handle<Code> code, | |
1249 Handle<FixedArray> literals) { | |
1250 CALL_HEAP_FUNCTION(isolate(), | |
1251 isolate()->heap()->AllocateOptimizedCodeEntry( | |
1252 *native_context, | |
1253 *function, | |
1254 *code, | |
1255 *literals), | |
1256 OptimizedCodeEntry); | |
1257 } | |
1258 | |
1259 | |
1260 Handle<String> Factory::NumberToString(Handle<Object> number) { | 1245 Handle<String> Factory::NumberToString(Handle<Object> number) { |
1261 CALL_HEAP_FUNCTION(isolate(), | 1246 CALL_HEAP_FUNCTION(isolate(), |
1262 isolate()->heap()->NumberToString(*number), String); | 1247 isolate()->heap()->NumberToString(*number), String); |
1263 } | 1248 } |
1264 | 1249 |
1265 | 1250 |
1266 Handle<String> Factory::Uint32ToString(uint32_t value) { | 1251 Handle<String> Factory::Uint32ToString(uint32_t value) { |
1267 CALL_HEAP_FUNCTION(isolate(), | 1252 CALL_HEAP_FUNCTION(isolate(), |
1268 isolate()->heap()->Uint32ToString(value), String); | 1253 isolate()->heap()->Uint32ToString(value), String); |
1269 } | 1254 } |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 return Handle<Object>::null(); | 1603 return Handle<Object>::null(); |
1619 } | 1604 } |
1620 | 1605 |
1621 | 1606 |
1622 Handle<Object> Factory::ToBoolean(bool value) { | 1607 Handle<Object> Factory::ToBoolean(bool value) { |
1623 return value ? true_value() : false_value(); | 1608 return value ? true_value() : false_value(); |
1624 } | 1609 } |
1625 | 1610 |
1626 | 1611 |
1627 } } // namespace v8::internal | 1612 } } // namespace v8::internal |
OLD | NEW |