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

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

Issue 369873002: MIPS: Start using OStreams. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/mips/code-stubs-mips.h ('k') | no next file » | 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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 private: 411 private:
412 Register result1_; 412 Register result1_;
413 Register result2_; 413 Register result2_;
414 Register source_; 414 Register source_;
415 Register zeros_; 415 Register zeros_;
416 416
417 // Minor key encoding in 16 bits. 417 // Minor key encoding in 16 bits.
418 class ModeBits: public BitField<OverwriteMode, 0, 2> {}; 418 class ModeBits: public BitField<OverwriteMode, 0, 2> {};
419 class OpBits: public BitField<Token::Value, 2, 14> {}; 419 class OpBits: public BitField<Token::Value, 2, 14> {};
420 420
421 Major MajorKey() { return ConvertToDouble; } 421 Major MajorKey() const { return ConvertToDouble; }
422 int MinorKey() { 422 int MinorKey() const {
423 // Encode the parameters in a unique 16 bit value. 423 // Encode the parameters in a unique 16 bit value.
424 return result1_.code() + 424 return result1_.code() +
425 (result2_.code() << 4) + 425 (result2_.code() << 4) +
426 (source_.code() << 8) + 426 (source_.code() << 8) +
427 (zeros_.code() << 12); 427 (zeros_.code() << 12);
428 } 428 }
429 429
430 void Generate(MacroAssembler* masm); 430 void Generate(MacroAssembler* masm);
431 }; 431 };
432 432
(...skipping 4866 matching lines...) Expand 10 before | Expand all | Expand 10 after
5299 MemOperand(fp, 6 * kPointerSize), 5299 MemOperand(fp, 6 * kPointerSize),
5300 NULL); 5300 NULL);
5301 } 5301 }
5302 5302
5303 5303
5304 #undef __ 5304 #undef __
5305 5305
5306 } } // namespace v8::internal 5306 } } // namespace v8::internal
5307 5307
5308 #endif // V8_TARGET_ARCH_MIPS 5308 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698