| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 <stdlib.h> | 5 #include <stdlib.h> |
| 6 #include <limits> | 6 #include <limits> |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 if (key->IsInternalizedString()) { | 200 if (key->IsInternalizedString()) { |
| 201 keys->set(index++, key); | 201 keys->set(index++, key); |
| 202 } | 202 } |
| 203 } | 203 } |
| 204 DCHECK(index == number_of_string_keys); | 204 DCHECK(index == number_of_string_keys); |
| 205 } | 205 } |
| 206 *is_result_from_cache = true; | 206 *is_result_from_cache = true; |
| 207 return isolate->factory()->ObjectLiteralMapFromCache(context, keys); | 207 return isolate->factory()->ObjectLiteralMapFromCache(context, keys); |
| 208 } | 208 } |
| 209 *is_result_from_cache = false; | 209 *is_result_from_cache = false; |
| 210 return Map::Create(handle(context->object_function()), number_of_properties); | 210 return Map::Create(isolate, number_of_properties); |
| 211 } | 211 } |
| 212 | 212 |
| 213 | 213 |
| 214 MUST_USE_RESULT static MaybeHandle<Object> CreateLiteralBoilerplate( | 214 MUST_USE_RESULT static MaybeHandle<Object> CreateLiteralBoilerplate( |
| 215 Isolate* isolate, | 215 Isolate* isolate, |
| 216 Handle<FixedArray> literals, | 216 Handle<FixedArray> literals, |
| 217 Handle<FixedArray> constant_properties); | 217 Handle<FixedArray> constant_properties); |
| 218 | 218 |
| 219 | 219 |
| 220 MUST_USE_RESULT static MaybeHandle<Object> CreateObjectLiteralBoilerplate( | 220 MUST_USE_RESULT static MaybeHandle<Object> CreateObjectLiteralBoilerplate( |
| (...skipping 15518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15739 } | 15739 } |
| 15740 return NULL; | 15740 return NULL; |
| 15741 } | 15741 } |
| 15742 | 15742 |
| 15743 | 15743 |
| 15744 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15744 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
| 15745 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15745 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
| 15746 } | 15746 } |
| 15747 | 15747 |
| 15748 } } // namespace v8::internal | 15748 } } // namespace v8::internal |
| OLD | NEW |