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

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

Issue 212593003: Merged r20033, r20138 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
Patch Set: Created 6 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('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 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 Major MajorKey() { return KeyedStoreElement; } 1859 Major MajorKey() { return KeyedStoreElement; }
1860 int NotMissMinorKey() { return bit_field_; } 1860 int NotMissMinorKey() { return bit_field_; }
1861 1861
1862 DISALLOW_COPY_AND_ASSIGN(KeyedStoreFastElementStub); 1862 DISALLOW_COPY_AND_ASSIGN(KeyedStoreFastElementStub);
1863 }; 1863 };
1864 1864
1865 1865
1866 class TransitionElementsKindStub : public HydrogenCodeStub { 1866 class TransitionElementsKindStub : public HydrogenCodeStub {
1867 public: 1867 public:
1868 TransitionElementsKindStub(ElementsKind from_kind, 1868 TransitionElementsKindStub(ElementsKind from_kind,
1869 ElementsKind to_kind) { 1869 ElementsKind to_kind,
1870 bool is_js_array) {
1870 bit_field_ = FromKindBits::encode(from_kind) | 1871 bit_field_ = FromKindBits::encode(from_kind) |
1871 ToKindBits::encode(to_kind); 1872 ToKindBits::encode(to_kind) |
1873 IsJSArrayBits::encode(is_js_array);
1872 } 1874 }
1873 1875
1874 ElementsKind from_kind() const { 1876 ElementsKind from_kind() const {
1875 return FromKindBits::decode(bit_field_); 1877 return FromKindBits::decode(bit_field_);
1876 } 1878 }
1877 1879
1878 ElementsKind to_kind() const { 1880 ElementsKind to_kind() const {
1879 return ToKindBits::decode(bit_field_); 1881 return ToKindBits::decode(bit_field_);
1880 } 1882 }
1881 1883
1884 bool is_js_array() const {
1885 return IsJSArrayBits::decode(bit_field_);
1886 }
1887
1882 virtual Handle<Code> GenerateCode(Isolate* isolate); 1888 virtual Handle<Code> GenerateCode(Isolate* isolate);
1883 1889
1884 virtual void InitializeInterfaceDescriptor( 1890 virtual void InitializeInterfaceDescriptor(
1885 Isolate* isolate, 1891 Isolate* isolate,
1886 CodeStubInterfaceDescriptor* descriptor); 1892 CodeStubInterfaceDescriptor* descriptor);
1887 1893
1888 private: 1894 private:
1889 class FromKindBits: public BitField<ElementsKind, 8, 8> {}; 1895 class FromKindBits: public BitField<ElementsKind, 8, 8> {};
1890 class ToKindBits: public BitField<ElementsKind, 0, 8> {}; 1896 class ToKindBits: public BitField<ElementsKind, 0, 8> {};
1897 class IsJSArrayBits: public BitField<bool, 16, 1> {};
1891 uint32_t bit_field_; 1898 uint32_t bit_field_;
1892 1899
1893 Major MajorKey() { return TransitionElementsKind; } 1900 Major MajorKey() { return TransitionElementsKind; }
1894 int NotMissMinorKey() { return bit_field_; } 1901 int NotMissMinorKey() { return bit_field_; }
1895 1902
1896 DISALLOW_COPY_AND_ASSIGN(TransitionElementsKindStub); 1903 DISALLOW_COPY_AND_ASSIGN(TransitionElementsKindStub);
1897 }; 1904 };
1898 1905
1899 1906
1900 enum ContextCheckMode { 1907 enum ContextCheckMode {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 int MinorKey() { return 0; } 2356 int MinorKey() { return 0; }
2350 2357
2351 void Generate(MacroAssembler* masm); 2358 void Generate(MacroAssembler* masm);
2352 2359
2353 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2360 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2354 }; 2361 };
2355 2362
2356 } } // namespace v8::internal 2363 } } // namespace v8::internal
2357 2364
2358 #endif // V8_CODE_STUBS_H_ 2365 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698