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

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

Issue 2261463002: There are only 2 language modes, not 3 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo last_language_mode Created 4 years, 4 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
« no previous file with comments | « src/ast/scopes.cc ('k') | src/globals.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 // 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/code-stub-assembler.h" 10 #include "src/code-stub-assembler.h"
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1838 } 1838 }
1839 1839
1840 int depth() const { return DepthBits::decode(minor_key_); } 1840 int depth() const { return DepthBits::decode(minor_key_); }
1841 LanguageMode language_mode() const { 1841 LanguageMode language_mode() const {
1842 return LanguageModeBits::decode(minor_key_); 1842 return LanguageModeBits::decode(minor_key_);
1843 } 1843 }
1844 1844
1845 private: 1845 private:
1846 class DepthBits : public BitField<int, 0, 4> {}; 1846 class DepthBits : public BitField<int, 0, 4> {};
1847 STATIC_ASSERT(DepthBits::kMax == kMaximumDepth); 1847 STATIC_ASSERT(DepthBits::kMax == kMaximumDepth);
1848 class LanguageModeBits : public BitField<LanguageMode, 4, 2> {}; 1848 class LanguageModeBits : public BitField<LanguageMode, 4, 1> {};
1849 STATIC_ASSERT(LANGUAGE_END == 3); 1849 STATIC_ASSERT(LANGUAGE_END == 2);
1850 1850
1851 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreGlobalViaContext); 1851 DEFINE_CALL_INTERFACE_DESCRIPTOR(StoreGlobalViaContext);
1852 DEFINE_PLATFORM_CODE_STUB(StoreGlobalViaContext, PlatformCodeStub); 1852 DEFINE_PLATFORM_CODE_STUB(StoreGlobalViaContext, PlatformCodeStub);
1853 }; 1853 };
1854 1854
1855 class CallApiCallbackStub : public PlatformCodeStub { 1855 class CallApiCallbackStub : public PlatformCodeStub {
1856 public: 1856 public:
1857 static const int kArgBits = 3; 1857 static const int kArgBits = 3;
1858 static const int kArgMax = (1 << kArgBits) - 1; 1858 static const int kArgMax = (1 << kArgBits) - 1;
1859 1859
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after
3210 #undef DEFINE_HYDROGEN_CODE_STUB 3210 #undef DEFINE_HYDROGEN_CODE_STUB
3211 #undef DEFINE_CODE_STUB 3211 #undef DEFINE_CODE_STUB
3212 #undef DEFINE_CODE_STUB_BASE 3212 #undef DEFINE_CODE_STUB_BASE
3213 3213
3214 extern Representation RepresentationFromType(Type* type); 3214 extern Representation RepresentationFromType(Type* type);
3215 3215
3216 } // namespace internal 3216 } // namespace internal
3217 } // namespace v8 3217 } // namespace v8
3218 3218
3219 #endif // V8_CODE_STUBS_H_ 3219 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698