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

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

Issue 40007: Disable the compilation caching for scripts to make it... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 | « src/compiler.cc ('k') | 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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 870
871 ParameterCount expected(ebx); 871 ParameterCount expected(ebx);
872 InvokeCode(Operand(edx), expected, actual, flag); 872 InvokeCode(Operand(edx), expected, actual, flag);
873 } 873 }
874 874
875 875
876 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag) { 876 void MacroAssembler::InvokeBuiltin(Builtins::JavaScript id, InvokeFlag flag) {
877 bool resolved; 877 bool resolved;
878 Handle<Code> code = ResolveBuiltin(id, &resolved); 878 Handle<Code> code = ResolveBuiltin(id, &resolved);
879 879
880 // Calls are not allowed in some stubs. 880 // Calls are not allowed in some stubs.
881 ASSERT(flag == JUMP_FUNCTION || allow_stub_calls()); 881 ASSERT(flag == JUMP_FUNCTION || allow_stub_calls());
882 882
883 // Rely on the assertion to check that the number of provided 883 // Rely on the assertion to check that the number of provided
884 // arguments match the expected number of arguments. Fake a 884 // arguments match the expected number of arguments. Fake a
885 // parameter count to avoid emitting code to do the check. 885 // parameter count to avoid emitting code to do the check.
886 ParameterCount expected(0); 886 ParameterCount expected(0);
887 InvokeCode(Handle<Code>(code), expected, expected, 887 InvokeCode(Handle<Code>(code), expected, expected,
888 RelocInfo::CODE_TARGET, flag); 888 RelocInfo::CODE_TARGET, flag);
889 889
890 const char* name = Builtins::GetName(id); 890 const char* name = Builtins::GetName(id);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 // Indicate that code has changed. 1027 // Indicate that code has changed.
1028 CPU::FlushICache(address_, size_); 1028 CPU::FlushICache(address_, size_);
1029 1029
1030 // Check that the code was patched as expected. 1030 // Check that the code was patched as expected.
1031 ASSERT(masm_.pc_ == address_ + size_); 1031 ASSERT(masm_.pc_ == address_ + size_);
1032 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1032 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1033 } 1033 }
1034 1034
1035 1035
1036 } } // namespace v8::internal 1036 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698