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

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

Issue 2286163002: Revert of Fix compiler warnings on "make android_arm" (Closed)
Patch Set: Created 4 years, 3 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/deoptimize-reason.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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 370
371 371
372 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) { 372 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) {
373 DCHECK(op->opcode() == IrOpcode::kJSCreateLiteralArray || 373 DCHECK(op->opcode() == IrOpcode::kJSCreateLiteralArray ||
374 op->opcode() == IrOpcode::kJSCreateLiteralObject || 374 op->opcode() == IrOpcode::kJSCreateLiteralObject ||
375 op->opcode() == IrOpcode::kJSCreateLiteralRegExp); 375 op->opcode() == IrOpcode::kJSCreateLiteralRegExp);
376 return OpParameter<CreateLiteralParameters>(op); 376 return OpParameter<CreateLiteralParameters>(op);
377 } 377 }
378 378
379 BinaryOperationHint BinaryOperationHintOf(const Operator* op) { 379 const BinaryOperationHint BinaryOperationHintOf(const Operator* op) {
380 DCHECK(op->opcode() == IrOpcode::kJSBitwiseOr || 380 DCHECK(op->opcode() == IrOpcode::kJSBitwiseOr ||
381 op->opcode() == IrOpcode::kJSBitwiseXor || 381 op->opcode() == IrOpcode::kJSBitwiseXor ||
382 op->opcode() == IrOpcode::kJSBitwiseAnd || 382 op->opcode() == IrOpcode::kJSBitwiseAnd ||
383 op->opcode() == IrOpcode::kJSShiftLeft || 383 op->opcode() == IrOpcode::kJSShiftLeft ||
384 op->opcode() == IrOpcode::kJSShiftRight || 384 op->opcode() == IrOpcode::kJSShiftRight ||
385 op->opcode() == IrOpcode::kJSShiftRightLogical || 385 op->opcode() == IrOpcode::kJSShiftRightLogical ||
386 op->opcode() == IrOpcode::kJSAdd || 386 op->opcode() == IrOpcode::kJSAdd ||
387 op->opcode() == IrOpcode::kJSSubtract || 387 op->opcode() == IrOpcode::kJSSubtract ||
388 op->opcode() == IrOpcode::kJSMultiply || 388 op->opcode() == IrOpcode::kJSMultiply ||
389 op->opcode() == IrOpcode::kJSDivide || 389 op->opcode() == IrOpcode::kJSDivide ||
390 op->opcode() == IrOpcode::kJSModulus); 390 op->opcode() == IrOpcode::kJSModulus);
391 return OpParameter<BinaryOperationHint>(op); 391 return OpParameter<BinaryOperationHint>(op);
392 } 392 }
393 393
394 CompareOperationHint CompareOperationHintOf(const Operator* op) { 394 const CompareOperationHint CompareOperationHintOf(const Operator* op) {
395 DCHECK(op->opcode() == IrOpcode::kJSEqual || 395 DCHECK(op->opcode() == IrOpcode::kJSEqual ||
396 op->opcode() == IrOpcode::kJSNotEqual || 396 op->opcode() == IrOpcode::kJSNotEqual ||
397 op->opcode() == IrOpcode::kJSStrictEqual || 397 op->opcode() == IrOpcode::kJSStrictEqual ||
398 op->opcode() == IrOpcode::kJSStrictNotEqual || 398 op->opcode() == IrOpcode::kJSStrictNotEqual ||
399 op->opcode() == IrOpcode::kJSLessThan || 399 op->opcode() == IrOpcode::kJSLessThan ||
400 op->opcode() == IrOpcode::kJSGreaterThan || 400 op->opcode() == IrOpcode::kJSGreaterThan ||
401 op->opcode() == IrOpcode::kJSLessThanOrEqual || 401 op->opcode() == IrOpcode::kJSLessThanOrEqual ||
402 op->opcode() == IrOpcode::kJSGreaterThanOrEqual); 402 op->opcode() == IrOpcode::kJSGreaterThanOrEqual);
403 return OpParameter<CompareOperationHint>(op); 403 return OpParameter<CompareOperationHint>(op);
404 } 404 }
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- 837 return new (zone()) Operator1<Handle<ScopeInfo>>( // --
838 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode 838 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode
839 "JSCreateScriptContext", // name 839 "JSCreateScriptContext", // name
840 1, 1, 1, 1, 1, 2, // counts 840 1, 1, 1, 1, 1, 2, // counts
841 scpope_info); // parameter 841 scpope_info); // parameter
842 } 842 }
843 843
844 } // namespace compiler 844 } // namespace compiler
845 } // namespace internal 845 } // namespace internal
846 } // namespace v8 846 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/deoptimize-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698