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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 5772003: Fix presubmit (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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 | « no previous file | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 // region. Pointer to this region should be passed to a function as an 1223 // region. Pointer to this region should be passed to a function as an
1224 // implicit first argument. 1224 // implicit first argument.
1225 #if defined(USING_BSD_ABI) || defined(__MINGW32__) 1225 #if defined(USING_BSD_ABI) || defined(__MINGW32__)
1226 static const bool kReturnHandlesDirectly = true; 1226 static const bool kReturnHandlesDirectly = true;
1227 #else 1227 #else
1228 static const bool kReturnHandlesDirectly = false; 1228 static const bool kReturnHandlesDirectly = false;
1229 #endif 1229 #endif
1230 1230
1231 1231
1232 Operand ApiParameterOperand(int index) { 1232 Operand ApiParameterOperand(int index) {
1233 return Operand(esp, (index + (kReturnHandlesDirectly ? 0 : 1)) * kPointerSize) ; 1233 return Operand(
1234 esp, (index + (kReturnHandlesDirectly ? 0 : 1)) * kPointerSize);
1234 } 1235 }
1235 1236
1236 1237
1237 void MacroAssembler::PrepareCallApiFunction(int argc, Register scratch) { 1238 void MacroAssembler::PrepareCallApiFunction(int argc, Register scratch) {
1238 if (kReturnHandlesDirectly) { 1239 if (kReturnHandlesDirectly) {
1239 EnterApiExitFrame(argc); 1240 EnterApiExitFrame(argc);
1240 // When handles are returned directly we don't have to allocate extra 1241 // When handles are returned directly we don't have to allocate extra
1241 // space for and pass an out parameter. 1242 // space for and pass an out parameter.
1242 } else { 1243 } else {
1243 // We allocate two additional slots: return value and pointer to it. 1244 // We allocate two additional slots: return value and pointer to it.
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 1915
1915 // Check that the code was patched as expected. 1916 // Check that the code was patched as expected.
1916 ASSERT(masm_.pc_ == address_ + size_); 1917 ASSERT(masm_.pc_ == address_ + size_);
1917 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1918 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1918 } 1919 }
1919 1920
1920 1921
1921 } } // namespace v8::internal 1922 } } // namespace v8::internal
1922 1923
1923 #endif // V8_TARGET_ARCH_IA32 1924 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698