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

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: 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
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 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 Register destination, 1904 Register destination,
1905 int offset, 1905 int offset,
1906 bool is_truncating, 1906 bool is_truncating,
1907 bool skip_fastpath = false) 1907 bool skip_fastpath = false)
1908 : PlatformCodeStub(isolate), bit_field_(0) { 1908 : PlatformCodeStub(isolate), bit_field_(0) {
1909 bit_field_ = SourceRegisterBits::encode(source.code()) | 1909 bit_field_ = SourceRegisterBits::encode(source.code()) |
1910 DestinationRegisterBits::encode(destination.code()) | 1910 DestinationRegisterBits::encode(destination.code()) |
1911 OffsetBits::encode(offset) | 1911 OffsetBits::encode(offset) |
1912 IsTruncatingBits::encode(is_truncating) | 1912 IsTruncatingBits::encode(is_truncating) |
1913 SkipFastPathBits::encode(skip_fastpath) | 1913 SkipFastPathBits::encode(skip_fastpath) |
1914 SSEBits::encode(CpuFeatures::IsSafeForSnapshot(SSE2) ? 1914 SSEBits::encode(
1915 CpuFeatures::IsSafeForSnapshot(SSE3) ? 2 : 1 : 0); 1915 CpuFeatures::IsSafeForSnapshot(isolate, SSE2) ?
1916 CpuFeatures::IsSafeForSnapshot(isolate, SSE3) ? 2 : 1 : 0);
1916 } 1917 }
1917 1918
1918 Register source() { 1919 Register source() {
1919 return Register::from_code(SourceRegisterBits::decode(bit_field_)); 1920 return Register::from_code(SourceRegisterBits::decode(bit_field_));
1920 } 1921 }
1921 1922
1922 Register destination() { 1923 Register destination() {
1923 return Register::from_code(DestinationRegisterBits::decode(bit_field_)); 1924 return Register::from_code(DestinationRegisterBits::decode(bit_field_));
1924 } 1925 }
1925 1926
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 2530
2530 2531
2531 class CallDescriptors { 2532 class CallDescriptors {
2532 public: 2533 public:
2533 static void InitializeForIsolate(Isolate* isolate); 2534 static void InitializeForIsolate(Isolate* isolate);
2534 }; 2535 };
2535 2536
2536 } } // namespace v8::internal 2537 } } // namespace v8::internal
2537 2538
2538 #endif // V8_CODE_STUBS_H_ 2539 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler.cc » ('j') | src/objects-visiting-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698