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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 6 years, 7 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/bootstrapper.cc ('k') | src/compiler.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 // 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 "allocation.h" 8 #include "allocation.h"
9 #include "assembler.h" 9 #include "assembler.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 Register destination, 1881 Register destination,
1882 int offset, 1882 int offset,
1883 bool is_truncating, 1883 bool is_truncating,
1884 bool skip_fastpath = false) 1884 bool skip_fastpath = false)
1885 : PlatformCodeStub(isolate), bit_field_(0) { 1885 : PlatformCodeStub(isolate), bit_field_(0) {
1886 bit_field_ = SourceRegisterBits::encode(source.code()) | 1886 bit_field_ = SourceRegisterBits::encode(source.code()) |
1887 DestinationRegisterBits::encode(destination.code()) | 1887 DestinationRegisterBits::encode(destination.code()) |
1888 OffsetBits::encode(offset) | 1888 OffsetBits::encode(offset) |
1889 IsTruncatingBits::encode(is_truncating) | 1889 IsTruncatingBits::encode(is_truncating) |
1890 SkipFastPathBits::encode(skip_fastpath) | 1890 SkipFastPathBits::encode(skip_fastpath) |
1891 SSEBits::encode(CpuFeatures::IsSafeForSnapshot(SSE2) ? 1891 SSEBits::encode(
1892 CpuFeatures::IsSafeForSnapshot(SSE3) ? 2 : 1 : 0); 1892 CpuFeatures::IsSafeForSnapshot(isolate, SSE2) ?
1893 CpuFeatures::IsSafeForSnapshot(isolate, SSE3) ? 2 : 1 : 0);
1893 } 1894 }
1894 1895
1895 Register source() { 1896 Register source() {
1896 return Register::from_code(SourceRegisterBits::decode(bit_field_)); 1897 return Register::from_code(SourceRegisterBits::decode(bit_field_));
1897 } 1898 }
1898 1899
1899 Register destination() { 1900 Register destination() {
1900 return Register::from_code(DestinationRegisterBits::decode(bit_field_)); 1901 return Register::from_code(DestinationRegisterBits::decode(bit_field_));
1901 } 1902 }
1902 1903
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2506 2507
2507 2508
2508 class CallDescriptors { 2509 class CallDescriptors {
2509 public: 2510 public:
2510 static void InitializeForIsolate(Isolate* isolate); 2511 static void InitializeForIsolate(Isolate* isolate);
2511 }; 2512 };
2512 2513
2513 } } // namespace v8::internal 2514 } } // namespace v8::internal
2514 2515
2515 #endif // V8_CODE_STUBS_H_ 2516 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698