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

Side by Side Diff: src/runtime/runtime-interpreter.cc

Issue 1486563002: Remove {FIRST,LAST}_SPEC_OBJECT_TYPE. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/x64/builtins-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/isolate-inl.h" 8 #include "src/isolate-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 cache_array = handle(descriptors->GetEnumCache(), isolate); 168 cache_array = handle(descriptors->GetEnumCache(), isolate);
169 cache_length = cache_array->length(); 169 cache_length = cache_array->length();
170 } else { 170 } else {
171 cache_array = isolate->factory()->empty_fixed_array(); 171 cache_array = isolate->factory()->empty_fixed_array();
172 cache_length = 0; 172 cache_length = 0;
173 } 173 }
174 } else { 174 } else {
175 cache_array = Handle<FixedArray>::cast(cache_type); 175 cache_array = Handle<FixedArray>::cast(cache_type);
176 cache_length = cache_array->length(); 176 cache_length = cache_array->length();
177 177
178 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); 178 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE);
179 if (receiver_map->instance_type() <= LAST_JS_PROXY_TYPE) { 179 if (receiver_map->instance_type() <= LAST_JS_PROXY_TYPE) {
180 DCHECK_GE(receiver_map->instance_type(), LAST_JS_PROXY_TYPE); 180 DCHECK_GE(receiver_map->instance_type(), LAST_JS_PROXY_TYPE);
181 // Zero indicates proxy 181 // Zero indicates proxy
182 cache_type = Handle<Object>(Smi::FromInt(0), isolate); 182 cache_type = Handle<Object>(Smi::FromInt(0), isolate);
183 } else { 183 } else {
184 // One entails slow check 184 // One entails slow check
185 cache_type = Handle<Object>(Smi::FromInt(1), isolate); 185 cache_type = Handle<Object>(Smi::FromInt(1), isolate);
186 } 186 }
187 } 187 }
188 188
189 Handle<FixedArray> result = isolate->factory()->NewFixedArray(4); 189 Handle<FixedArray> result = isolate->factory()->NewFixedArray(4);
190 result->set(0, *receiver); 190 result->set(0, *receiver);
191 result->set(1, *cache_array); 191 result->set(1, *cache_array);
192 result->set(2, *cache_type); 192 result->set(2, *cache_type);
193 result->set(3, Smi::FromInt(cache_length)); 193 result->set(3, Smi::FromInt(cache_length));
194 return *result; 194 return *result;
195 } 195 }
196 196
197 197
198 } // namespace internal 198 } // namespace internal
199 } // namespace v8 199 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698