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

Side by Side Diff: src/objects.cc

Issue 1379313002: [es6] Implement parts of the Reflect object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase and use strict Created 5 years, 2 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/builtins.cc ('k') | test/mjsunit/harmony/reflect.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 5840 matching lines...) Expand 10 before | Expand all | Expand 10 after
5851 LookupIterator it(object->GetIsolate(), object, index, 5851 LookupIterator it(object->GetIsolate(), object, index,
5852 LookupIterator::HIDDEN); 5852 LookupIterator::HIDDEN);
5853 return DeleteProperty(&it, language_mode); 5853 return DeleteProperty(&it, language_mode);
5854 } 5854 }
5855 5855
5856 5856
5857 MaybeHandle<Object> JSReceiver::DeleteProperty(Handle<JSReceiver> object, 5857 MaybeHandle<Object> JSReceiver::DeleteProperty(Handle<JSReceiver> object,
5858 Handle<Name> name, 5858 Handle<Name> name,
5859 LanguageMode language_mode) { 5859 LanguageMode language_mode) {
5860 LookupIterator it(object, name, LookupIterator::HIDDEN); 5860 LookupIterator it(object, name, LookupIterator::HIDDEN);
5861 return JSObject::DeleteProperty(&it, language_mode); 5861 return DeleteProperty(&it, language_mode);
5862 } 5862 }
5863 5863
5864 5864
5865 MaybeHandle<Object> JSReceiver::DeletePropertyOrElement( 5865 MaybeHandle<Object> JSReceiver::DeletePropertyOrElement(
5866 Handle<JSReceiver> object, Handle<Name> name, LanguageMode language_mode) { 5866 Handle<JSReceiver> object, Handle<Name> name, LanguageMode language_mode) {
5867 LookupIterator it = LookupIterator::PropertyOrElement( 5867 LookupIterator it = LookupIterator::PropertyOrElement(
5868 name->GetIsolate(), object, name, LookupIterator::HIDDEN); 5868 name->GetIsolate(), object, name, LookupIterator::HIDDEN);
5869 return JSObject::DeleteProperty(&it, language_mode); 5869 return DeleteProperty(&it, language_mode);
5870 } 5870 }
5871 5871
5872 5872
5873 bool JSObject::ReferencesObjectFromElements(FixedArray* elements, 5873 bool JSObject::ReferencesObjectFromElements(FixedArray* elements,
5874 ElementsKind kind, 5874 ElementsKind kind,
5875 Object* object) { 5875 Object* object) {
5876 DCHECK(IsFastObjectElementsKind(kind) || 5876 DCHECK(IsFastObjectElementsKind(kind) ||
5877 kind == DICTIONARY_ELEMENTS); 5877 kind == DICTIONARY_ELEMENTS);
5878 if (IsFastObjectElementsKind(kind)) { 5878 if (IsFastObjectElementsKind(kind)) {
5879 int length = IsJSArray() 5879 int length = IsJSArray()
(...skipping 11030 matching lines...) Expand 10 before | Expand all | Expand 10 after
16910 if (cell->value() != *new_value) { 16910 if (cell->value() != *new_value) {
16911 cell->set_value(*new_value); 16911 cell->set_value(*new_value);
16912 Isolate* isolate = cell->GetIsolate(); 16912 Isolate* isolate = cell->GetIsolate();
16913 cell->dependent_code()->DeoptimizeDependentCodeGroup( 16913 cell->dependent_code()->DeoptimizeDependentCodeGroup(
16914 isolate, DependentCode::kPropertyCellChangedGroup); 16914 isolate, DependentCode::kPropertyCellChangedGroup);
16915 } 16915 }
16916 } 16916 }
16917 16917
16918 } // namespace internal 16918 } // namespace internal
16919 } // namespace v8 16919 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | test/mjsunit/harmony/reflect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698