| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 #if defined(V8_TARGET_ARCH_ARM) | 30 #if defined(V8_TARGET_ARCH_ARM) |
| 31 | 31 |
| 32 #include "codegen.h" | 32 #include "codegen.h" |
| 33 #include "macro-assembler.h" | 33 #include "macro-assembler.h" |
| 34 | 34 |
| 35 namespace v8 { | 35 namespace v8 { |
| 36 namespace internal { | 36 namespace internal { |
| 37 | 37 |
| 38 #define __ ACCESS_MASM(masm) | 38 #define __ ACCESS_MASM(masm) |
| 39 | 39 |
| 40 TranscendentalFunction CreateTranscendentalFunction( | |
| 41 TranscendentalCache::Type type) { | |
| 42 switch (type) { | |
| 43 case TranscendentalCache::SIN: return &sin; | |
| 44 case TranscendentalCache::COS: return &cos; | |
| 45 case TranscendentalCache::TAN: return &tan; | |
| 46 case TranscendentalCache::LOG: return &log; | |
| 47 default: UNIMPLEMENTED(); | |
| 48 } | |
| 49 return NULL; | |
| 50 } | |
| 51 | |
| 52 | |
| 53 // ------------------------------------------------------------------------- | 40 // ------------------------------------------------------------------------- |
| 54 // Platform-specific RuntimeCallHelper functions. | 41 // Platform-specific RuntimeCallHelper functions. |
| 55 | 42 |
| 56 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { | 43 void StubRuntimeCallHelper::BeforeCall(MacroAssembler* masm) const { |
| 57 masm->EnterFrame(StackFrame::INTERNAL); | 44 masm->EnterFrame(StackFrame::INTERNAL); |
| 58 ASSERT(!masm->has_frame()); | 45 ASSERT(!masm->has_frame()); |
| 59 masm->set_has_frame(true); | 46 masm->set_has_frame(true); |
| 60 } | 47 } |
| 61 | 48 |
| 62 | 49 |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // Ascii string. | 413 // Ascii string. |
| 427 __ ldrb(result, MemOperand(string, index)); | 414 __ ldrb(result, MemOperand(string, index)); |
| 428 __ bind(&done); | 415 __ bind(&done); |
| 429 } | 416 } |
| 430 | 417 |
| 431 #undef __ | 418 #undef __ |
| 432 | 419 |
| 433 } } // namespace v8::internal | 420 } } // namespace v8::internal |
| 434 | 421 |
| 435 #endif // V8_TARGET_ARCH_ARM | 422 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |