| 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" |
| 11 #include "src/isolate-inl.h" | |
| 12 #include "src/macro-assembler.h" | 11 #include "src/macro-assembler.h" |
| 13 | 12 |
| 14 namespace v8 { | 13 namespace v8 { |
| 15 namespace internal { | 14 namespace internal { |
| 16 | 15 |
| 17 | 16 |
| 18 template<typename T> | 17 template<typename T> |
| 19 Handle<T> Factory::New(Handle<Map> map, AllocationSpace space) { | 18 Handle<T> Factory::New(Handle<Map> map, AllocationSpace space) { |
| 20 CALL_HEAP_FUNCTION( | 19 CALL_HEAP_FUNCTION( |
| 21 isolate(), | 20 isolate(), |
| (...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2398 return Handle<Object>::null(); | 2397 return Handle<Object>::null(); |
| 2399 } | 2398 } |
| 2400 | 2399 |
| 2401 | 2400 |
| 2402 Handle<Object> Factory::ToBoolean(bool value) { | 2401 Handle<Object> Factory::ToBoolean(bool value) { |
| 2403 return value ? true_value() : false_value(); | 2402 return value ? true_value() : false_value(); |
| 2404 } | 2403 } |
| 2405 | 2404 |
| 2406 | 2405 |
| 2407 } } // namespace v8::internal | 2406 } } // namespace v8::internal |
| OLD | NEW |