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

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

Issue 131029: X64 implementation: Add function literals and function calls. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/x64/macro-assembler-x64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 1410
1411 1411
1412 void Assembler::call(const Operand& adr) { 1412 void Assembler::call(const Operand& adr) {
1413 EnsureSpace ensure_space(this); 1413 EnsureSpace ensure_space(this);
1414 last_pc_ = pc_; 1414 last_pc_ = pc_;
1415 EMIT(0xFF); 1415 EMIT(0xFF);
1416 emit_operand(edx, adr); 1416 emit_operand(edx, adr);
1417 } 1417 }
1418 1418
1419 1419
1420 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { 1420 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) {
1421 WriteRecordedPositions(); 1421 WriteRecordedPositions();
1422 EnsureSpace ensure_space(this); 1422 EnsureSpace ensure_space(this);
1423 last_pc_ = pc_; 1423 last_pc_ = pc_;
1424 ASSERT(RelocInfo::IsCodeTarget(rmode)); 1424 ASSERT(RelocInfo::IsCodeTarget(rmode));
1425 EMIT(0xE8); 1425 EMIT(0xE8);
1426 emit(reinterpret_cast<intptr_t>(code.location()), rmode); 1426 emit(reinterpret_cast<intptr_t>(code.location()), rmode);
1427 } 1427 }
1428 1428
1429 1429
1430 void Assembler::jmp(Label* L) { 1430 void Assembler::jmp(Label* L) {
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
2201 push_insn[1] = 13; // Skip over coverage insns. 2201 push_insn[1] = 13; // Skip over coverage insns.
2202 if (coverage_log != NULL) { 2202 if (coverage_log != NULL) {
2203 fprintf(coverage_log, "%s\n", file_line); 2203 fprintf(coverage_log, "%s\n", file_line);
2204 fflush(coverage_log); 2204 fflush(coverage_log);
2205 } 2205 }
2206 } 2206 }
2207 2207
2208 #endif 2208 #endif
2209 2209
2210 } } // namespace v8::internal 2210 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | src/x64/macro-assembler-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698