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

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

Issue 1283653004: Remove grab-bag includes of v8.h from full codegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 4 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
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"
6
7 #if V8_TARGET_ARCH_MIPS 5 #if V8_TARGET_ARCH_MIPS
8 6
9 // Note on Mips implementation: 7 // Note on Mips implementation:
10 // 8 //
11 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
12 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
13 // parameter to a function is defined to be 'a0'. So there are many 11 // parameter to a function is defined to be 'a0'. So there are many
14 // places where we have to move a previous result in v0 to a0 for the 12 // places where we have to move a previous result in v0 to a0 for the
15 // next call: mov(a0, v0). This is not needed on the other architectures. 13 // next call: mov(a0, v0). This is not needed on the other architectures.
16 14
(...skipping 5389 matching lines...) Expand 10 before | Expand all | Expand 10 after
5406 reinterpret_cast<uint32_t>( 5404 reinterpret_cast<uint32_t>(
5407 isolate->builtins()->OsrAfterStackCheck()->entry())); 5405 isolate->builtins()->OsrAfterStackCheck()->entry()));
5408 return OSR_AFTER_STACK_CHECK; 5406 return OSR_AFTER_STACK_CHECK;
5409 } 5407 }
5410 5408
5411 5409
5412 } // namespace internal 5410 } // namespace internal
5413 } // namespace v8 5411 } // namespace v8
5414 5412
5415 #endif // V8_TARGET_ARCH_MIPS 5413 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698