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

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

Issue 866843003: Contribution of PowerPC port (continuation of 422063005) - AIX Common1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address second set of comments Created 5 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
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 #ifndef V8_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 std::ostream& operator<<(std::ostream& os, const CompareNilICStub::State& s); 1512 std::ostream& operator<<(std::ostream& os, const CompareNilICStub::State& s);
1513 1513
1514 1514
1515 class CEntryStub : public PlatformCodeStub { 1515 class CEntryStub : public PlatformCodeStub {
1516 public: 1516 public:
1517 CEntryStub(Isolate* isolate, int result_size, 1517 CEntryStub(Isolate* isolate, int result_size,
1518 SaveFPRegsMode save_doubles = kDontSaveFPRegs) 1518 SaveFPRegsMode save_doubles = kDontSaveFPRegs)
1519 : PlatformCodeStub(isolate) { 1519 : PlatformCodeStub(isolate) {
1520 minor_key_ = SaveDoublesBits::encode(save_doubles == kSaveFPRegs); 1520 minor_key_ = SaveDoublesBits::encode(save_doubles == kSaveFPRegs);
1521 DCHECK(result_size == 1 || result_size == 2); 1521 DCHECK(result_size == 1 || result_size == 2);
1522 #if _WIN64 || (V8_TARGET_ARCH_PPC64 && !ABI_RETURNS_OBJECT_PAIRS_IN_REGS) 1522 #if _WIN64 || V8_TARGET_ARCH_PPC
1523 minor_key_ = ResultSizeBits::update(minor_key_, result_size); 1523 minor_key_ = ResultSizeBits::update(minor_key_, result_size);
1524 #endif // _WIN64 1524 #endif // _WIN64
1525 } 1525 }
1526 1526
1527 // The version of this stub that doesn't save doubles is generated ahead of 1527 // The version of this stub that doesn't save doubles is generated ahead of
1528 // time, so it's OK to call it from other stubs that can't cope with GC during 1528 // time, so it's OK to call it from other stubs that can't cope with GC during
1529 // their code generation. On machines that always have gp registers (x64) we 1529 // their code generation. On machines that always have gp registers (x64) we
1530 // can generate both variants ahead of time. 1530 // can generate both variants ahead of time.
1531 static void GenerateAheadOfTime(Isolate* isolate); 1531 static void GenerateAheadOfTime(Isolate* isolate);
1532 1532
1533 private: 1533 private:
1534 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); } 1534 bool save_doubles() const { return SaveDoublesBits::decode(minor_key_); }
1535 #if _WIN64 || (V8_TARGET_ARCH_PPC64 && !ABI_RETURNS_OBJECT_PAIRS_IN_REGS) 1535 #if _WIN64 || V8_TARGET_ARCH_PPC
1536 int result_size() const { return ResultSizeBits::decode(minor_key_); } 1536 int result_size() const { return ResultSizeBits::decode(minor_key_); }
1537 #endif // _WIN64 1537 #endif // _WIN64
1538 1538
1539 bool NeedsImmovableCode() OVERRIDE; 1539 bool NeedsImmovableCode() OVERRIDE;
1540 1540
1541 class SaveDoublesBits : public BitField<bool, 0, 1> {}; 1541 class SaveDoublesBits : public BitField<bool, 0, 1> {};
1542 class ResultSizeBits : public BitField<int, 1, 3> {}; 1542 class ResultSizeBits : public BitField<int, 1, 3> {};
1543 1543
1544 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR(); 1544 DEFINE_NULL_CALL_INTERFACE_DESCRIPTOR();
1545 DEFINE_PLATFORM_CODE_STUB(CEntry, PlatformCodeStub); 1545 DEFINE_PLATFORM_CODE_STUB(CEntry, PlatformCodeStub);
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 2671
2672 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2672 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2673 #undef DEFINE_PLATFORM_CODE_STUB 2673 #undef DEFINE_PLATFORM_CODE_STUB
2674 #undef DEFINE_HANDLER_CODE_STUB 2674 #undef DEFINE_HANDLER_CODE_STUB
2675 #undef DEFINE_HYDROGEN_CODE_STUB 2675 #undef DEFINE_HYDROGEN_CODE_STUB
2676 #undef DEFINE_CODE_STUB 2676 #undef DEFINE_CODE_STUB
2677 #undef DEFINE_CODE_STUB_BASE 2677 #undef DEFINE_CODE_STUB_BASE
2678 } } // namespace v8::internal 2678 } } // namespace v8::internal
2679 2679
2680 #endif // V8_CODE_STUBS_H_ 2680 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/base/sys-info.cc ('k') | src/codegen.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698