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

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

Issue 201106: Fix bug that errnoeously sets FPU exception. (Closed)
Patch Set: Created 11 years, 3 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
« no previous file with comments | « no previous file | src/runtime.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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 312 }
313 313
314 314
315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { 315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) {
316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), 316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset),
317 static_cast<int8_t>(type)); 317 static_cast<int8_t>(type));
318 } 318 }
319 319
320 320
321 void MacroAssembler::FCmp() { 321 void MacroAssembler::FCmp() {
322 fcompp(); 322 fucompp();
323 push(eax); 323 push(eax);
324 fnstsw_ax(); 324 fnstsw_ax();
325 sahf(); 325 sahf();
326 pop(eax); 326 pop(eax);
327 } 327 }
328 328
329 329
330 void MacroAssembler::EnterFrame(StackFrame::Type type) { 330 void MacroAssembler::EnterFrame(StackFrame::Type type) {
331 push(ebp); 331 push(ebp);
332 mov(ebp, Operand(esp)); 332 mov(ebp, Operand(esp));
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 // Indicate that code has changed. 1183 // Indicate that code has changed.
1184 CPU::FlushICache(address_, size_); 1184 CPU::FlushICache(address_, size_);
1185 1185
1186 // Check that the code was patched as expected. 1186 // Check that the code was patched as expected.
1187 ASSERT(masm_.pc_ == address_ + size_); 1187 ASSERT(masm_.pc_ == address_ + size_);
1188 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1188 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1189 } 1189 }
1190 1190
1191 1191
1192 } } // namespace v8::internal 1192 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698