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

Side by Side Diff: src/code-stub-assembler.cc

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: addressing nits Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #include "src/code-stub-assembler.h" 4 #include "src/code-stub-assembler.h"
5 #include "src/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/frames-inl.h" 6 #include "src/frames-inl.h"
7 #include "src/frames.h" 7 #include "src/frames.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 4420 matching lines...) Expand 10 before | Expand all | Expand 10 after
4431 Node* CodeStubAssembler::GetNumberOfDeletedElements(Node* dictionary) { 4431 Node* CodeStubAssembler::GetNumberOfDeletedElements(Node* dictionary) {
4432 return LoadFixedArrayElement(dictionary, 4432 return LoadFixedArrayElement(dictionary,
4433 Dictionary::kNumberOfDeletedElementsIndex); 4433 Dictionary::kNumberOfDeletedElementsIndex);
4434 } 4434 }
4435 4435
4436 template <class Dictionary> 4436 template <class Dictionary>
4437 Node* CodeStubAssembler::GetCapacity(Node* dictionary) { 4437 Node* CodeStubAssembler::GetCapacity(Node* dictionary) {
4438 return LoadFixedArrayElement(dictionary, Dictionary::kCapacityIndex); 4438 return LoadFixedArrayElement(dictionary, Dictionary::kCapacityIndex);
4439 } 4439 }
4440 4440
4441 template Node* CodeStubAssembler::GetCapacity<NameDictionary>(Node* dictionary);
4442
4441 template <class Dictionary> 4443 template <class Dictionary>
4442 Node* CodeStubAssembler::GetNextEnumerationIndex(Node* dictionary) { 4444 Node* CodeStubAssembler::GetNextEnumerationIndex(Node* dictionary) {
4443 return LoadFixedArrayElement(dictionary, 4445 return LoadFixedArrayElement(dictionary,
4444 Dictionary::kNextEnumerationIndexIndex); 4446 Dictionary::kNextEnumerationIndexIndex);
4445 } 4447 }
4446 4448
4447 template <class Dictionary> 4449 template <class Dictionary>
4448 void CodeStubAssembler::SetNextEnumerationIndex(Node* dictionary, 4450 void CodeStubAssembler::SetNextEnumerationIndex(Node* dictionary,
4449 Node* next_enum_index_smi) { 4451 Node* next_enum_index_smi) {
4450 StoreFixedArrayElement(dictionary, Dictionary::kNextEnumerationIndexIndex, 4452 StoreFixedArrayElement(dictionary, Dictionary::kNextEnumerationIndexIndex,
(...skipping 3869 matching lines...) Expand 10 before | Expand all | Expand 10 after
8320 formatted.c_str(), TENURED); 8322 formatted.c_str(), TENURED);
8321 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(), 8323 CallRuntime(Runtime::kGlobalPrint, NoContextConstant(),
8322 HeapConstant(string)); 8324 HeapConstant(string));
8323 } 8325 }
8324 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value); 8326 CallRuntime(Runtime::kDebugPrint, NoContextConstant(), tagged_value);
8325 #endif 8327 #endif
8326 } 8328 }
8327 8329
8328 } // namespace internal 8330 } // namespace internal
8329 } // namespace v8 8331 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698