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

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

Issue 2430273007: [runtime] Object.create(null) creates a slow object (Closed)
Patch Set: fix GC mole issue Created 4 years, 1 month 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/compiler/code-assembler.h ('k') | src/contexts.h » ('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/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 Node* CodeAssembler::NumberConstant(double value) { 105 Node* CodeAssembler::NumberConstant(double value) {
106 return raw_assembler_->NumberConstant(value); 106 return raw_assembler_->NumberConstant(value);
107 } 107 }
108 108
109 Node* CodeAssembler::SmiConstant(Smi* value) { 109 Node* CodeAssembler::SmiConstant(Smi* value) {
110 return BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value))); 110 return BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value)));
111 } 111 }
112 112
113 Node* CodeAssembler::SmiConstant(int value) {
114 return SmiConstant(Smi::FromInt(value));
115 }
116
113 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { 117 Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) {
114 return raw_assembler_->HeapConstant(object); 118 return raw_assembler_->HeapConstant(object);
115 } 119 }
116 120
117 Node* CodeAssembler::BooleanConstant(bool value) { 121 Node* CodeAssembler::BooleanConstant(bool value) {
118 return raw_assembler_->BooleanConstant(value); 122 return raw_assembler_->BooleanConstant(value);
119 } 123 }
120 124
121 Node* CodeAssembler::ExternalConstant(ExternalReference address) { 125 Node* CodeAssembler::ExternalConstant(ExternalReference address) {
122 return raw_assembler_->ExternalConstant(address); 126 return raw_assembler_->ExternalConstant(address);
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 } 1173 }
1170 } 1174 }
1171 } 1175 }
1172 1176
1173 bound_ = true; 1177 bound_ = true;
1174 } 1178 }
1175 1179
1176 } // namespace compiler 1180 } // namespace compiler
1177 } // namespace internal 1181 } // namespace internal
1178 } // namespace v8 1182 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698