| 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 "factory.h" | 5 #include "src/factory.h" |
| 6 | 6 |
| 7 #include "conversions.h" | 7 #include "src/conversions.h" |
| 8 #include "isolate-inl.h" | 8 #include "src/isolate-inl.h" |
| 9 #include "macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| 11 namespace v8 { | 11 namespace v8 { |
| 12 namespace internal { | 12 namespace internal { |
| 13 | 13 |
| 14 | 14 |
| 15 template<typename T> | 15 template<typename T> |
| 16 Handle<T> Factory::New(Handle<Map> map, AllocationSpace space) { | 16 Handle<T> Factory::New(Handle<Map> map, AllocationSpace space) { |
| 17 CALL_HEAP_FUNCTION( | 17 CALL_HEAP_FUNCTION( |
| 18 isolate(), | 18 isolate(), |
| 19 isolate()->heap()->Allocate(*map, space), | 19 isolate()->heap()->Allocate(*map, space), |
| (...skipping 2311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2331 return Handle<Object>::null(); | 2331 return Handle<Object>::null(); |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 | 2334 |
| 2335 Handle<Object> Factory::ToBoolean(bool value) { | 2335 Handle<Object> Factory::ToBoolean(bool value) { |
| 2336 return value ? true_value() : false_value(); | 2336 return value ? true_value() : false_value(); |
| 2337 } | 2337 } |
| 2338 | 2338 |
| 2339 | 2339 |
| 2340 } } // namespace v8::internal | 2340 } } // namespace v8::internal |
| OLD | NEW |