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

Side by Side Diff: src/a64/codegen-a64.cc

Issue 157503002: A64: Synchronize with r18444. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/full-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 20 matching lines...) Expand all
31 31
32 #include "codegen.h" 32 #include "codegen.h"
33 #include "macro-assembler.h" 33 #include "macro-assembler.h"
34 #include "simulator-a64.h" 34 #include "simulator-a64.h"
35 35
36 namespace v8 { 36 namespace v8 {
37 namespace internal { 37 namespace internal {
38 38
39 #define __ ACCESS_MASM(masm) 39 #define __ ACCESS_MASM(masm)
40 40
41 UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type) {
42 switch (type) {
43 case TranscendentalCache::LOG: return &log;
44 default: UNIMPLEMENTED();
45 }
46 return NULL;
47 }
48
49
50 #if defined(USE_SIMULATOR) 41 #if defined(USE_SIMULATOR)
51 byte* fast_exp_a64_machine_code = NULL; 42 byte* fast_exp_a64_machine_code = NULL;
52 double fast_exp_simulator(double x) { 43 double fast_exp_simulator(double x) {
53 Simulator * simulator = Simulator::current(Isolate::Current()); 44 Simulator * simulator = Simulator::current(Isolate::Current());
54 return simulator->CallDouble(fast_exp_a64_machine_code, 45 return simulator->CallDouble(fast_exp_a64_machine_code,
55 Simulator::CallArgument(x), 46 Simulator::CallArgument(x),
56 Simulator::CallArgument::End()); 47 Simulator::CallArgument::End());
57 } 48 }
58 #endif 49 #endif
59 50
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 __ Fmul(result, double_temp3, double_temp1); 605 __ Fmul(result, double_temp3, double_temp1);
615 606
616 __ Bind(&done); 607 __ Bind(&done);
617 } 608 }
618 609
619 #undef __ 610 #undef __
620 611
621 } } // namespace v8::internal 612 } } // namespace v8::internal
622 613
623 #endif // V8_TARGET_ARCH_A64 614 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/full-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698