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

Side by Side Diff: src/compiler/js-operator.cc

Issue 1160983004: [turbofan] First step towards sanitizing for-in and making it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add some comments. Created 5 years, 6 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/compiler/js-operator.h ('k') | src/compiler/linkage.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 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 "src/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 V(ToBoolean, Operator::kPure, 1, 1) \ 231 V(ToBoolean, Operator::kPure, 1, 1) \
232 V(ToNumber, Operator::kNoProperties, 1, 1) \ 232 V(ToNumber, Operator::kNoProperties, 1, 1) \
233 V(ToString, Operator::kNoProperties, 1, 1) \ 233 V(ToString, Operator::kNoProperties, 1, 1) \
234 V(ToName, Operator::kNoProperties, 1, 1) \ 234 V(ToName, Operator::kNoProperties, 1, 1) \
235 V(ToObject, Operator::kNoProperties, 1, 1) \ 235 V(ToObject, Operator::kNoProperties, 1, 1) \
236 V(Yield, Operator::kNoProperties, 1, 1) \ 236 V(Yield, Operator::kNoProperties, 1, 1) \
237 V(Create, Operator::kEliminatable, 0, 1) \ 237 V(Create, Operator::kEliminatable, 0, 1) \
238 V(HasProperty, Operator::kNoProperties, 2, 1) \ 238 V(HasProperty, Operator::kNoProperties, 2, 1) \
239 V(TypeOf, Operator::kPure, 1, 1) \ 239 V(TypeOf, Operator::kPure, 1, 1) \
240 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 240 V(InstanceOf, Operator::kNoProperties, 2, 1) \
241 V(ForInDone, Operator::kPure, 2, 1) \
242 V(ForInNext, Operator::kNoProperties, 4, 1) \
243 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
244 V(ForInStep, Operator::kPure, 1, 1) \
241 V(StackCheck, Operator::kNoProperties, 0, 0) \ 245 V(StackCheck, Operator::kNoProperties, 0, 0) \
242 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ 246 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \
243 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ 247 V(CreateWithContext, Operator::kNoProperties, 2, 1) \
244 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ 248 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \
245 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ 249 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \
246 V(CreateScriptContext, Operator::kNoProperties, 2, 1) 250 V(CreateScriptContext, Operator::kNoProperties, 2, 1)
247 251
248 252
249 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \ 253 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \
250 V(LessThan, Operator::kNoProperties, 2, 1) \ 254 V(LessThan, Operator::kNoProperties, 2, 1) \
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 return new (zone()) Operator1<Unique<String>>( // -- 474 return new (zone()) Operator1<Unique<String>>( // --
471 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 475 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
472 "JSCreateCatchContext", // name 476 "JSCreateCatchContext", // name
473 2, 1, 1, 1, 1, 2, // counts 477 2, 1, 1, 1, 1, 2, // counts
474 name); // parameter 478 name); // parameter
475 } 479 }
476 480
477 } // namespace compiler 481 } // namespace compiler
478 } // namespace internal 482 } // namespace internal
479 } // namespace v8 483 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698