| 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/conversions.h" | 7 #include "src/conversions.h" |
| 8 #include "src/isolate-inl.h" | 8 #include "src/isolate-inl.h" |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 | 10 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { | 144 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { |
| 145 return OrderedHashMap::Allocate(isolate(), 4); | 145 return OrderedHashMap::Allocate(isolate(), 4); |
| 146 } | 146 } |
| 147 | 147 |
| 148 | 148 |
| 149 Handle<AccessorPair> Factory::NewAccessorPair() { | 149 Handle<AccessorPair> Factory::NewAccessorPair() { |
| 150 Handle<AccessorPair> accessors = | 150 Handle<AccessorPair> accessors = |
| 151 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE)); | 151 Handle<AccessorPair>::cast(NewStruct(ACCESSOR_PAIR_TYPE)); |
| 152 accessors->set_getter(*the_hole_value(), SKIP_WRITE_BARRIER); | 152 accessors->set_getter(*the_hole_value(), SKIP_WRITE_BARRIER); |
| 153 accessors->set_setter(*the_hole_value(), SKIP_WRITE_BARRIER); | 153 accessors->set_setter(*the_hole_value(), SKIP_WRITE_BARRIER); |
| 154 accessors->set_access_flags(Smi::FromInt(0), SKIP_WRITE_BARRIER); | |
| 155 return accessors; | 154 return accessors; |
| 156 } | 155 } |
| 157 | 156 |
| 158 | 157 |
| 159 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() { | 158 Handle<TypeFeedbackInfo> Factory::NewTypeFeedbackInfo() { |
| 160 Handle<TypeFeedbackInfo> info = | 159 Handle<TypeFeedbackInfo> info = |
| 161 Handle<TypeFeedbackInfo>::cast(NewStruct(TYPE_FEEDBACK_INFO_TYPE)); | 160 Handle<TypeFeedbackInfo>::cast(NewStruct(TYPE_FEEDBACK_INFO_TYPE)); |
| 162 info->initialize_storage(); | 161 info->initialize_storage(); |
| 163 return info; | 162 return info; |
| 164 } | 163 } |
| (...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 return Handle<Object>::null(); | 2336 return Handle<Object>::null(); |
| 2338 } | 2337 } |
| 2339 | 2338 |
| 2340 | 2339 |
| 2341 Handle<Object> Factory::ToBoolean(bool value) { | 2340 Handle<Object> Factory::ToBoolean(bool value) { |
| 2342 return value ? true_value() : false_value(); | 2341 return value ? true_value() : false_value(); |
| 2343 } | 2342 } |
| 2344 | 2343 |
| 2345 | 2344 |
| 2346 } } // namespace v8::internal | 2345 } } // namespace v8::internal |
| OLD | NEW |