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

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

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixing merge artifacts 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/runtime/runtime.h ('k') | src/runtime/runtime-proxy.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_JS_RECEIVER_TYPE); 178 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE);
179 if (receiver_map->instance_type() <= LAST_JS_PROXY_TYPE) { 179 if (receiver_map->instance_type() == JS_PROXY_TYPE) {
180 DCHECK_GE(receiver_map->instance_type(), LAST_JS_PROXY_TYPE);
181 // Zero indicates proxy 180 // Zero indicates proxy
182 cache_type = Handle<Object>(Smi::FromInt(0), isolate); 181 cache_type = Handle<Object>(Smi::FromInt(0), isolate);
183 } else { 182 } else {
184 // One entails slow check 183 // One entails slow check
185 cache_type = Handle<Object>(Smi::FromInt(1), isolate); 184 cache_type = Handle<Object>(Smi::FromInt(1), isolate);
186 } 185 }
187 } 186 }
188 187
189 Handle<FixedArray> result = isolate->factory()->NewFixedArray(4); 188 Handle<FixedArray> result = isolate->factory()->NewFixedArray(4);
190 result->set(0, *receiver); 189 result->set(0, *receiver);
191 result->set(1, *cache_array); 190 result->set(1, *cache_array);
192 result->set(2, *cache_type); 191 result->set(2, *cache_type);
193 result->set(3, Smi::FromInt(cache_length)); 192 result->set(3, Smi::FromInt(cache_length));
194 return *result; 193 return *result;
195 } 194 }
196 195
197 196
198 } // namespace internal 197 } // namespace internal
199 } // namespace v8 198 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698