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

Side by Side Diff: src/runtime.cc

Issue 286073004: Fix builtin/runtime name clashes generated by macros (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/runtime.h ('k') | src/typedarray.js » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 7773 matching lines...) Expand 10 before | Expand all | Expand 10 after
7784 HandleScope scope(isolate); \ 7784 HandleScope scope(isolate); \
7785 ASSERT(args.length() == 1); \ 7785 ASSERT(args.length() == 1); \
7786 isolate->counters()->math_##name()->Increment(); \ 7786 isolate->counters()->math_##name()->Increment(); \
7787 CONVERT_DOUBLE_ARG_CHECKED(x, 0); \ 7787 CONVERT_DOUBLE_ARG_CHECKED(x, 0); \
7788 return *isolate->factory()->NewHeapNumber(std::name(x)); \ 7788 return *isolate->factory()->NewHeapNumber(std::name(x)); \
7789 } 7789 }
7790 7790
7791 RUNTIME_UNARY_MATH(Acos, acos) 7791 RUNTIME_UNARY_MATH(Acos, acos)
7792 RUNTIME_UNARY_MATH(Asin, asin) 7792 RUNTIME_UNARY_MATH(Asin, asin)
7793 RUNTIME_UNARY_MATH(Atan, atan) 7793 RUNTIME_UNARY_MATH(Atan, atan)
7794 RUNTIME_UNARY_MATH(Log, log) 7794 RUNTIME_UNARY_MATH(LogRT, log)
7795 #undef RUNTIME_UNARY_MATH 7795 #undef RUNTIME_UNARY_MATH
7796 7796
7797 7797
7798 RUNTIME_FUNCTION(Runtime_DoubleHi) { 7798 RUNTIME_FUNCTION(Runtime_DoubleHi) {
7799 HandleScope scope(isolate); 7799 HandleScope scope(isolate);
7800 ASSERT(args.length() == 1); 7800 ASSERT(args.length() == 1);
7801 CONVERT_DOUBLE_ARG_CHECKED(x, 0); 7801 CONVERT_DOUBLE_ARG_CHECKED(x, 0);
7802 uint64_t integer = double_to_uint64(x); 7802 uint64_t integer = double_to_uint64(x);
7803 integer = (integer >> 32) & 0xFFFFFFFFu; 7803 integer = (integer >> 32) & 0xFFFFFFFFu;
7804 return *isolate->factory()->NewNumber(static_cast<int32_t>(integer)); 7804 return *isolate->factory()->NewNumber(static_cast<int32_t>(integer));
(...skipping 7423 matching lines...) Expand 10 before | Expand all | Expand 10 after
15228 } 15228 }
15229 return NULL; 15229 return NULL;
15230 } 15230 }
15231 15231
15232 15232
15233 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15233 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15234 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15234 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15235 } 15235 }
15236 15236
15237 } } // namespace v8::internal 15237 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.h ('k') | src/typedarray.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698