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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 18509003: Keep two empty lines between declarations for cpp files (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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
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 3342 matching lines...) Expand 10 before | Expand all | Expand 10 after
3353 scratch, Operand(FIRST_SPEC_OBJECT_TYPE)); 3353 scratch, Operand(FIRST_SPEC_OBJECT_TYPE));
3354 __ Branch(&receiver_ok); 3354 __ Branch(&receiver_ok);
3355 3355
3356 __ bind(&global_object); 3356 __ bind(&global_object);
3357 __ lw(receiver, GlobalObjectOperand()); 3357 __ lw(receiver, GlobalObjectOperand());
3358 __ lw(receiver, 3358 __ lw(receiver,
3359 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); 3359 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset));
3360 __ bind(&receiver_ok); 3360 __ bind(&receiver_ok);
3361 } 3361 }
3362 3362
3363
3363 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { 3364 void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
3364 Register receiver = ToRegister(instr->receiver()); 3365 Register receiver = ToRegister(instr->receiver());
3365 Register function = ToRegister(instr->function()); 3366 Register function = ToRegister(instr->function());
3366 Register length = ToRegister(instr->length()); 3367 Register length = ToRegister(instr->length());
3367 Register elements = ToRegister(instr->elements()); 3368 Register elements = ToRegister(instr->elements());
3368 Register scratch = scratch0(); 3369 Register scratch = scratch0();
3369 ASSERT(receiver.is(a0)); // Used for parameter count. 3370 ASSERT(receiver.is(a0)); // Used for parameter count.
3370 ASSERT(function.is(a1)); // Required by InvokeFunction. 3371 ASSERT(function.is(a1)); // Required by InvokeFunction.
3371 ASSERT(ToRegister(instr->result()).is(v0)); 3372 ASSERT(ToRegister(instr->result()).is(v0));
3372 3373
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
3879 // 0x41300000 is the top half of 1.0 x 2^20 as a double. 3880 // 0x41300000 is the top half of 1.0 x 2^20 as a double.
3880 __ li(a2, Operand(0x41300000)); 3881 __ li(a2, Operand(0x41300000));
3881 // Move 0x41300000xxxxxxxx (x = random bits in v0) to FPU. 3882 // Move 0x41300000xxxxxxxx (x = random bits in v0) to FPU.
3882 __ Move(f12, v0, a2); 3883 __ Move(f12, v0, a2);
3883 // Move 0x4130000000000000 to FPU. 3884 // Move 0x4130000000000000 to FPU.
3884 __ Move(f14, zero_reg, a2); 3885 __ Move(f14, zero_reg, a2);
3885 // Subtract to get the result. 3886 // Subtract to get the result.
3886 __ sub_d(f0, f12, f14); 3887 __ sub_d(f0, f12, f14);
3887 } 3888 }
3888 3889
3890
3889 void LCodeGen::DoDeferredRandom(LRandom* instr) { 3891 void LCodeGen::DoDeferredRandom(LRandom* instr) {
3890 __ PrepareCallCFunction(1, scratch0()); 3892 __ PrepareCallCFunction(1, scratch0());
3891 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1); 3893 __ CallCFunction(ExternalReference::random_uint32_function(isolate()), 1);
3892 // Return value is in v0. 3894 // Return value is in v0.
3893 } 3895 }
3894 3896
3895 3897
3896 void LCodeGen::DoMathExp(LMathExp* instr) { 3898 void LCodeGen::DoMathExp(LMathExp* instr) {
3897 DoubleRegister input = ToDoubleRegister(instr->value()); 3899 DoubleRegister input = ToDoubleRegister(instr->value());
3898 DoubleRegister result = ToDoubleRegister(instr->result()); 3900 DoubleRegister result = ToDoubleRegister(instr->result());
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after
5900 __ Subu(scratch, result, scratch); 5902 __ Subu(scratch, result, scratch);
5901 __ lw(result, FieldMemOperand(scratch, 5903 __ lw(result, FieldMemOperand(scratch,
5902 FixedArray::kHeaderSize - kPointerSize)); 5904 FixedArray::kHeaderSize - kPointerSize));
5903 __ bind(&done); 5905 __ bind(&done);
5904 } 5906 }
5905 5907
5906 5908
5907 #undef __ 5909 #undef __
5908 5910
5909 } } // namespace v8::internal 5911 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/constants-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | tools/presubmit.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698