Chromium Code Reviews

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

Issue 2073123002: [builtins] Introduce proper Float64Cos and Float64Sin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 209 matching lines...)
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 kIeee754Float64Atan: 227 case kIeee754Float64Atan:
228 case kIeee754Float64Atan2: 228 case kIeee754Float64Atan2:
229 case kIeee754Float64Atanh: 229 case kIeee754Float64Atanh:
230 case kIeee754Float64Cbrt:
231 case kIeee754Float64Cos:
230 case kIeee754Float64Exp: 232 case kIeee754Float64Exp:
231 case kIeee754Float64Expm1: 233 case kIeee754Float64Expm1:
232 case kIeee754Float64Log: 234 case kIeee754Float64Log:
233 case kIeee754Float64Log1p: 235 case kIeee754Float64Log1p:
236 case kIeee754Float64Log10:
234 case kIeee754Float64Log2: 237 case kIeee754Float64Log2:
235 case kIeee754Float64Log10: 238 case kIeee754Float64Sin:
236 case kIeee754Float64Cbrt:
237 return kNoOpcodeFlags; 239 return kNoOpcodeFlags;
238 240
239 case kArchStackPointer: 241 case kArchStackPointer:
240 // ArchStackPointer instruction loads the current stack pointer value and 242 // ArchStackPointer instruction loads the current stack pointer value and
241 // must not be reordered with instruction with side effects. 243 // must not be reordered with instruction with side effects.
242 return kIsLoadOperation; 244 return kIsLoadOperation;
243 245
244 case kArchPrepareCallCFunction: 246 case kArchPrepareCallCFunction:
245 case kArchPrepareTailCall: 247 case kArchPrepareTailCall:
246 case kArchCallCFunction: 248 case kArchCallCFunction:
(...skipping 102 matching lines...)
349 } 351 }
350 } 352 }
351 353
352 node->set_total_latency(max_latency + node->latency()); 354 node->set_total_latency(max_latency + node->latency());
353 } 355 }
354 } 356 }
355 357
356 } // namespace compiler 358 } // namespace compiler
357 } // namespace internal 359 } // namespace internal
358 } // namespace v8 360 } // namespace v8
OLDNEW

Powered by Google App Engine