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

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

Issue 934463003: super.property store (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: git rebase Created 5 years, 10 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
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/harmony/super.js » ('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 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 <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/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 } 304 }
305 305
306 PrototypeIterator iter(isolate, home_object); 306 PrototypeIterator iter(isolate, home_object);
307 Handle<Object> proto = PrototypeIterator::GetCurrent(iter); 307 Handle<Object> proto = PrototypeIterator::GetCurrent(iter);
308 if (!proto->IsJSReceiver()) return isolate->heap()->undefined_value(); 308 if (!proto->IsJSReceiver()) return isolate->heap()->undefined_value();
309 309
310 LookupIterator it(receiver, name, Handle<JSReceiver>::cast(proto)); 310 LookupIterator it(receiver, name, Handle<JSReceiver>::cast(proto));
311 Handle<Object> result; 311 Handle<Object> result;
312 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 312 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
313 isolate, result, 313 isolate, result,
314 Object::SetProperty(&it, value, language_mode, 314 Object::SetSuperProperty(&it, value, language_mode,
315 Object::CERTAINLY_NOT_STORE_FROM_KEYED, 315 Object::CERTAINLY_NOT_STORE_FROM_KEYED));
316 Object::SUPER_PROPERTY));
317 return *result; 316 return *result;
318 } 317 }
319 318
320 319
321 static Object* StoreElementToSuper(Isolate* isolate, 320 static Object* StoreElementToSuper(Isolate* isolate,
322 Handle<JSObject> home_object, 321 Handle<JSObject> home_object,
323 Handle<Object> receiver, uint32_t index, 322 Handle<Object> receiver, uint32_t index,
324 Handle<Object> value, 323 Handle<Object> value,
325 LanguageMode language_mode) { 324 LanguageMode language_mode) {
326 if (home_object->IsAccessCheckNeeded() && 325 if (home_object->IsAccessCheckNeeded() &&
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 return *isolate->factory()->undefined_value(); 423 return *isolate->factory()->undefined_value();
425 } 424 }
426 425
427 426
428 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) { 427 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) {
429 UNREACHABLE(); 428 UNREACHABLE();
430 return nullptr; 429 return nullptr;
431 } 430 }
432 } 431 }
433 } // namespace v8::internal 432 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/harmony/super.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698