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

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

Issue 1412443010: [turbofan] Switch message object manipulation to JSOperator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/js-operator.h ('k') | src/compiler/opcodes.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 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return os << p.pretenure() << ", " << Brief(*p.shared_info()); 344 return os << p.pretenure() << ", " << Brief(*p.shared_info());
345 } 345 }
346 346
347 347
348 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) { 348 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) {
349 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode()); 349 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode());
350 return OpParameter<CreateClosureParameters>(op); 350 return OpParameter<CreateClosureParameters>(op);
351 } 351 }
352 352
353 353
354 #define CACHED_OP_LIST(V) \ 354 #define CACHED_OP_LIST(V) \
355 V(Equal, Operator::kNoProperties, 2, 1) \ 355 V(Equal, Operator::kNoProperties, 2, 1) \
356 V(NotEqual, Operator::kNoProperties, 2, 1) \ 356 V(NotEqual, Operator::kNoProperties, 2, 1) \
357 V(StrictEqual, Operator::kNoThrow, 2, 1) \ 357 V(StrictEqual, Operator::kNoThrow, 2, 1) \
358 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \ 358 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \
359 V(UnaryNot, Operator::kEliminatable, 1, 1) \ 359 V(UnaryNot, Operator::kEliminatable, 1, 1) \
360 V(ToBoolean, Operator::kEliminatable, 1, 1) \ 360 V(ToBoolean, Operator::kEliminatable, 1, 1) \
361 V(ToNumber, Operator::kNoProperties, 1, 1) \ 361 V(ToNumber, Operator::kNoProperties, 1, 1) \
362 V(ToString, Operator::kNoProperties, 1, 1) \ 362 V(ToString, Operator::kNoProperties, 1, 1) \
363 V(ToName, Operator::kNoProperties, 1, 1) \ 363 V(ToName, Operator::kNoProperties, 1, 1) \
364 V(ToObject, Operator::kNoProperties, 1, 1) \ 364 V(ToObject, Operator::kNoProperties, 1, 1) \
365 V(Yield, Operator::kNoProperties, 1, 1) \ 365 V(Yield, Operator::kNoProperties, 1, 1) \
366 V(Create, Operator::kEliminatable, 0, 1) \ 366 V(Create, Operator::kEliminatable, 0, 1) \
367 V(HasProperty, Operator::kNoProperties, 2, 1) \ 367 V(HasProperty, Operator::kNoProperties, 2, 1) \
368 V(TypeOf, Operator::kEliminatable, 1, 1) \ 368 V(TypeOf, Operator::kEliminatable, 1, 1) \
369 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 369 V(InstanceOf, Operator::kNoProperties, 2, 1) \
370 V(ForInDone, Operator::kPure, 2, 1) \ 370 V(ForInDone, Operator::kPure, 2, 1) \
371 V(ForInNext, Operator::kNoProperties, 4, 1) \ 371 V(ForInNext, Operator::kNoProperties, 4, 1) \
372 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ 372 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
373 V(ForInStep, Operator::kPure, 1, 1) \ 373 V(ForInStep, Operator::kPure, 1, 1) \
374 V(StackCheck, Operator::kNoProperties, 0, 0) \ 374 V(LoadMessage, Operator::kNoThrow, 0, 1) \
375 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ 375 V(StoreMessage, Operator::kNoThrow, 1, 0) \
376 V(StackCheck, Operator::kNoProperties, 0, 0) \
377 V(CreateWithContext, Operator::kNoProperties, 2, 1) \
376 V(CreateModuleContext, Operator::kNoProperties, 2, 1) 378 V(CreateModuleContext, Operator::kNoProperties, 2, 1)
377 379
378 380
379 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \ 381 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \
380 V(LessThan, Operator::kNoProperties, 2, 1) \ 382 V(LessThan, Operator::kNoProperties, 2, 1) \
381 V(GreaterThan, Operator::kNoProperties, 2, 1) \ 383 V(GreaterThan, Operator::kNoProperties, 2, 1) \
382 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ 384 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \
383 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ 385 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \
384 V(BitwiseOr, Operator::kNoProperties, 2, 1) \ 386 V(BitwiseOr, Operator::kNoProperties, 2, 1) \
385 V(BitwiseXor, Operator::kNoProperties, 2, 1) \ 387 V(BitwiseXor, Operator::kNoProperties, 2, 1) \
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 Handle<ScopeInfo>::hash>( // -- 703 Handle<ScopeInfo>::hash>( // --
702 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 704 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
703 "JSCreateScriptContext", // name 705 "JSCreateScriptContext", // name
704 1, 1, 1, 1, 1, 2, // counts 706 1, 1, 1, 1, 1, 2, // counts
705 scpope_info); // parameter 707 scpope_info); // parameter
706 } 708 }
707 709
708 } // namespace compiler 710 } // namespace compiler
709 } // namespace internal 711 } // namespace internal
710 } // namespace v8 712 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698