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

Side by Side Diff: src/assembler.cc

Issue 1594443003: [parsing] Move EvalComparison out of the assembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-source-position
Patch Set: Drop one more include. Created 4 years, 11 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/assembler.h ('k') | src/crankshaft/arm/lithium-codegen-arm.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "src/builtins.h" 44 #include "src/builtins.h"
45 #include "src/codegen.h" 45 #include "src/codegen.h"
46 #include "src/counters.h" 46 #include "src/counters.h"
47 #include "src/debug/debug.h" 47 #include "src/debug/debug.h"
48 #include "src/deoptimizer.h" 48 #include "src/deoptimizer.h"
49 #include "src/disassembler.h" 49 #include "src/disassembler.h"
50 #include "src/execution.h" 50 #include "src/execution.h"
51 #include "src/ic/ic.h" 51 #include "src/ic/ic.h"
52 #include "src/ic/stub-cache.h" 52 #include "src/ic/stub-cache.h"
53 #include "src/ostreams.h" 53 #include "src/ostreams.h"
54 #include "src/parsing/token.h"
55 #include "src/profiler/cpu-profiler.h" 54 #include "src/profiler/cpu-profiler.h"
56 #include "src/regexp/jsregexp.h" 55 #include "src/regexp/jsregexp.h"
57 #include "src/regexp/regexp-macro-assembler.h" 56 #include "src/regexp/regexp-macro-assembler.h"
58 #include "src/regexp/regexp-stack.h" 57 #include "src/regexp/regexp-stack.h"
59 #include "src/register-configuration.h" 58 #include "src/register-configuration.h"
60 #include "src/runtime/runtime.h" 59 #include "src/runtime/runtime.h"
61 #include "src/simulator.h" // For flushing instruction cache. 60 #include "src/simulator.h" // For flushing instruction cache.
62 #include "src/snapshot/serialize.h" 61 #include "src/snapshot/serialize.h"
63 62
64 #if V8_TARGET_ARCH_IA32 63 #if V8_TARGET_ARCH_IA32
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 1513
1515 1514
1516 ExternalReference ExternalReference::power_double_int_function( 1515 ExternalReference ExternalReference::power_double_int_function(
1517 Isolate* isolate) { 1516 Isolate* isolate) {
1518 return ExternalReference(Redirect(isolate, 1517 return ExternalReference(Redirect(isolate,
1519 FUNCTION_ADDR(power_double_int), 1518 FUNCTION_ADDR(power_double_int),
1520 BUILTIN_FP_INT_CALL)); 1519 BUILTIN_FP_INT_CALL));
1521 } 1520 }
1522 1521
1523 1522
1524 bool EvalComparison(Token::Value op, double op1, double op2) {
1525 DCHECK(Token::IsCompareOp(op));
1526 switch (op) {
1527 case Token::EQ:
1528 case Token::EQ_STRICT: return (op1 == op2);
1529 case Token::NE: return (op1 != op2);
1530 case Token::LT: return (op1 < op2);
1531 case Token::GT: return (op1 > op2);
1532 case Token::LTE: return (op1 <= op2);
1533 case Token::GTE: return (op1 >= op2);
1534 default:
1535 UNREACHABLE();
1536 return false;
1537 }
1538 }
1539
1540
1541 ExternalReference ExternalReference::mod_two_doubles_operation( 1523 ExternalReference ExternalReference::mod_two_doubles_operation(
1542 Isolate* isolate) { 1524 Isolate* isolate) {
1543 return ExternalReference(Redirect(isolate, 1525 return ExternalReference(Redirect(isolate,
1544 FUNCTION_ADDR(modulo), 1526 FUNCTION_ADDR(modulo),
1545 BUILTIN_FP_FP_CALL)); 1527 BUILTIN_FP_FP_CALL));
1546 } 1528 }
1547 1529
1548 1530
1549 ExternalReference ExternalReference::debug_step_in_enabled_address( 1531 ExternalReference ExternalReference::debug_step_in_enabled_address(
1550 Isolate* isolate) { 1532 Isolate* isolate) {
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1868 1850
1869 1851
1870 void Assembler::DataAlign(int m) { 1852 void Assembler::DataAlign(int m) {
1871 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1853 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1872 while ((pc_offset() & (m - 1)) != 0) { 1854 while ((pc_offset() & (m - 1)) != 0) {
1873 db(0); 1855 db(0);
1874 } 1856 }
1875 } 1857 }
1876 } // namespace internal 1858 } // namespace internal
1877 } // namespace v8 1859 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698