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

Side by Side Diff: src/compiler/instruction-scheduler.cc

Issue 2060743002: [builtins] Introduce proper Float64Log1p operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@Math_Log
Patch Set: REBASE Created 4 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
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/instruction-scheduler.h" 5 #include "src/compiler/instruction-scheduler.h"
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/base/utils/random-number-generator.h" 8 #include "src/base/utils/random-number-generator.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const { 218 int InstructionScheduler::GetInstructionFlags(const Instruction* instr) const {
219 switch (instr->arch_opcode()) { 219 switch (instr->arch_opcode()) {
220 case kArchNop: 220 case kArchNop:
221 case kArchFramePointer: 221 case kArchFramePointer:
222 case kArchParentFramePointer: 222 case kArchParentFramePointer:
223 case kArchTruncateDoubleToI: 223 case kArchTruncateDoubleToI:
224 case kArchStackSlot: 224 case kArchStackSlot:
225 case kArchDebugBreak: 225 case kArchDebugBreak:
226 case kArchComment: 226 case kArchComment:
227 case kIeee754Float64Log: 227 case kIeee754Float64Log:
228 case kIeee754Float64Log1p:
228 return kNoOpcodeFlags; 229 return kNoOpcodeFlags;
229 230
230 case kArchStackPointer: 231 case kArchStackPointer:
231 // ArchStackPointer instruction loads the current stack pointer value and 232 // ArchStackPointer instruction loads the current stack pointer value and
232 // must not be reordered with instruction with side effects. 233 // must not be reordered with instruction with side effects.
233 return kIsLoadOperation; 234 return kIsLoadOperation;
234 235
235 case kArchPrepareCallCFunction: 236 case kArchPrepareCallCFunction:
236 case kArchPrepareTailCall: 237 case kArchPrepareTailCall:
237 case kArchCallCFunction: 238 case kArchCallCFunction:
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 } 341 }
341 } 342 }
342 343
343 node->set_total_latency(max_latency + node->latency()); 344 node->set_total_latency(max_latency + node->latency());
344 } 345 }
345 } 346 }
346 347
347 } // namespace compiler 348 } // namespace compiler
348 } // namespace internal 349 } // namespace internal
349 } // namespace v8 350 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698