Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/runtime.cc

Issue 584943002: Make Map::Create always use the Object function, and remove the unused inobject properties (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698