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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 456001: Move CPU-specific constants from debug.h into the platform-specific directori... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/arm/assembler-arm.h ('k') | src/arm/debug-arm.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 frame_->CallRuntime(Runtime::kTraceExit, 1); 319 frame_->CallRuntime(Runtime::kTraceExit, 1);
320 } 320 }
321 321
322 // Add a label for checking the size of the code used for returning. 322 // Add a label for checking the size of the code used for returning.
323 Label check_exit_codesize; 323 Label check_exit_codesize;
324 masm_->bind(&check_exit_codesize); 324 masm_->bind(&check_exit_codesize);
325 325
326 // Calculate the exact length of the return sequence and make sure that 326 // Calculate the exact length of the return sequence and make sure that
327 // the constant pool is not emitted inside of the return sequence. 327 // the constant pool is not emitted inside of the return sequence.
328 int32_t sp_delta = (scope_->num_parameters() + 1) * kPointerSize; 328 int32_t sp_delta = (scope_->num_parameters() + 1) * kPointerSize;
329 int return_sequence_length = Debug::kARMJSReturnSequenceLength; 329 int return_sequence_length = Assembler::kJSReturnSequenceLength;
330 if (!masm_->ImmediateFitsAddrMode1Instruction(sp_delta)) { 330 if (!masm_->ImmediateFitsAddrMode1Instruction(sp_delta)) {
331 // Additional mov instruction generated. 331 // Additional mov instruction generated.
332 return_sequence_length++; 332 return_sequence_length++;
333 } 333 }
334 masm_->BlockConstPoolFor(return_sequence_length); 334 masm_->BlockConstPoolFor(return_sequence_length);
335 335
336 // Tear down the frame which will restore the caller's frame pointer and 336 // Tear down the frame which will restore the caller's frame pointer and
337 // the link register. 337 // the link register.
338 frame_->Exit(); 338 frame_->Exit();
339 339
(...skipping 6130 matching lines...) Expand 10 before | Expand all | Expand 10 after
6470 int CompareStub::MinorKey() { 6470 int CompareStub::MinorKey() {
6471 // Encode the two parameters in a unique 16 bit value. 6471 // Encode the two parameters in a unique 16 bit value.
6472 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 6472 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
6473 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 6473 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
6474 } 6474 }
6475 6475
6476 6476
6477 #undef __ 6477 #undef __
6478 6478
6479 } } // namespace v8::internal 6479 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698