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

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 502713003: Encode CEntryStub properties in the minor key. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: encode Created 6 years, 3 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/mips64/code-stubs-mips64.h ('k') | src/x64/code-stubs-x64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 Register result1_; 399 Register result1_;
400 Register result2_; 400 Register result2_;
401 Register source_; 401 Register source_;
402 Register zeros_; 402 Register zeros_;
403 403
404 // Minor key encoding in 16 bits. 404 // Minor key encoding in 16 bits.
405 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; 405 class ModeBits: public BitField<OverwriteMode, 0, 2> {};
406 class OpBits: public BitField<Token::Value, 2, 14> {}; 406 class OpBits: public BitField<Token::Value, 2, 14> {};
407 407
408 Major MajorKey() const { return ConvertToDouble; } 408 Major MajorKey() const { return ConvertToDouble; }
409 int MinorKey() const { 409 uint32_t MinorKey() const {
410 // Encode the parameters in a unique 16 bit value. 410 // Encode the parameters in a unique 16 bit value.
411 return result1_.code() + 411 return result1_.code() +
412 (result2_.code() << 4) + 412 (result2_.code() << 4) +
413 (source_.code() << 8) + 413 (source_.code() << 8) +
414 (zeros_.code() << 12); 414 (zeros_.code() << 12);
415 } 415 }
416 416
417 void Generate(MacroAssembler* masm); 417 void Generate(MacroAssembler* masm);
418 }; 418 };
419 419
(...skipping 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after
5323 MemOperand(fp, 6 * kPointerSize), 5323 MemOperand(fp, 6 * kPointerSize),
5324 NULL); 5324 NULL);
5325 } 5325 }
5326 5326
5327 5327
5328 #undef __ 5328 #undef __
5329 5329
5330 } } // namespace v8::internal 5330 } } // namespace v8::internal
5331 5331
5332 #endif // V8_TARGET_ARCH_MIPS64 5332 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.h ('k') | src/x64/code-stubs-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698