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

Side by Side Diff: src/objects.h

Issue 172133003: Harmony: optimize Math.clz32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix 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/ia32/lithium-ia32.cc ('k') | src/x64/assembler-x64.h » ('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 // 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 6599 matching lines...) Expand 10 before | Expand all | Expand 10 after
6610 V(Math, imul, MathImul) 6610 V(Math, imul, MathImul)
6611 6611
6612 enum BuiltinFunctionId { 6612 enum BuiltinFunctionId {
6613 kArrayCode, 6613 kArrayCode,
6614 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \ 6614 #define DECLARE_FUNCTION_ID(ignored1, ignore2, name) \
6615 k##name, 6615 k##name,
6616 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID) 6616 FUNCTIONS_WITH_ID_LIST(DECLARE_FUNCTION_ID)
6617 #undef DECLARE_FUNCTION_ID 6617 #undef DECLARE_FUNCTION_ID
6618 // Fake id for a special case of Math.pow. Note, it continues the 6618 // Fake id for a special case of Math.pow. Note, it continues the
6619 // list of math functions. 6619 // list of math functions.
6620 kMathPowHalf 6620 kMathPowHalf,
6621 // Installed only on --harmony-maths.
6622 kMathClz32
6621 }; 6623 };
6622 6624
6623 6625
6624 // SharedFunctionInfo describes the JSFunction information that can be 6626 // SharedFunctionInfo describes the JSFunction information that can be
6625 // shared by multiple instances of the function. 6627 // shared by multiple instances of the function.
6626 class SharedFunctionInfo: public HeapObject { 6628 class SharedFunctionInfo: public HeapObject {
6627 public: 6629 public:
6628 // [name]: Function name. 6630 // [name]: Function name.
6629 DECL_ACCESSORS(name, Object) 6631 DECL_ACCESSORS(name, Object)
6630 6632
(...skipping 4138 matching lines...) Expand 10 before | Expand all | Expand 10 after
10769 } else { 10771 } else {
10770 value &= ~(1 << bit_position); 10772 value &= ~(1 << bit_position);
10771 } 10773 }
10772 return value; 10774 return value;
10773 } 10775 }
10774 }; 10776 };
10775 10777
10776 } } // namespace v8::internal 10778 } } // namespace v8::internal
10777 10779
10778 #endif // V8_OBJECTS_H_ 10780 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698