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

Side by Side Diff: src/arm/code-stubs-arm.h

Issue 6591073: ARM: Implement untagged input for TranscendentalCacheStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix lint. Created 9 years, 9 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 | « no previous file | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 #include "ic-inl.h" 31 #include "ic-inl.h"
32 32
33 namespace v8 { 33 namespace v8 {
34 namespace internal { 34 namespace internal {
35 35
36 36
37 // Compute a transcendental math function natively, or call the 37 // Compute a transcendental math function natively, or call the
38 // TranscendentalCache runtime function. 38 // TranscendentalCache runtime function.
39 class TranscendentalCacheStub: public CodeStub { 39 class TranscendentalCacheStub: public CodeStub {
40 public: 40 public:
41 explicit TranscendentalCacheStub(TranscendentalCache::Type type) 41 enum ArgumentType {
42 : type_(type) {} 42 TAGGED = 0 << TranscendentalCache::kTranscendentalTypeBits,
43 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits
44 };
45
46 TranscendentalCacheStub(TranscendentalCache::Type type,
47 ArgumentType argument_type)
48 : type_(type), argument_type_(argument_type) { }
43 void Generate(MacroAssembler* masm); 49 void Generate(MacroAssembler* masm);
44 private: 50 private:
45 TranscendentalCache::Type type_; 51 TranscendentalCache::Type type_;
52 ArgumentType argument_type_;
53 void GenerateCallCFunction(MacroAssembler* masm, Register scratch);
54
46 Major MajorKey() { return TranscendentalCache; } 55 Major MajorKey() { return TranscendentalCache; }
47 int MinorKey() { return type_; } 56 int MinorKey() { return type_ | argument_type_; }
48 Runtime::FunctionId RuntimeFunction(); 57 Runtime::FunctionId RuntimeFunction();
49 }; 58 };
50 59
51 60
52 class ToBooleanStub: public CodeStub { 61 class ToBooleanStub: public CodeStub {
53 public: 62 public:
54 explicit ToBooleanStub(Register tos) : tos_(tos) { } 63 explicit ToBooleanStub(Register tos) : tos_(tos) { }
55 64
56 void Generate(MacroAssembler* masm); 65 void Generate(MacroAssembler* masm);
57 66
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 bool load_elements_from_receiver, 657 bool load_elements_from_receiver,
649 bool load_elements_map_from_elements, 658 bool load_elements_map_from_elements,
650 Label* key_not_smi, 659 Label* key_not_smi,
651 Label* value_not_smi, 660 Label* value_not_smi,
652 Label* not_pixel_array, 661 Label* not_pixel_array,
653 Label* out_of_range); 662 Label* out_of_range);
654 663
655 } } // namespace v8::internal 664 } } // namespace v8::internal
656 665
657 #endif // V8_ARM_CODE_STUBS_ARM_H_ 666 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698