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

Side by Side Diff: src/stub-cache.cc

Issue 108443004: Ensure that Code objects' kind specific flags are initialized properly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix nit Created 7 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 | « src/objects-inl.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 1093
1094 #undef CALL_LOGGER_TAG 1094 #undef CALL_LOGGER_TAG
1095 1095
1096 1096
1097 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, 1097 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
1098 const char* name) { 1098 const char* name) {
1099 // Create code object in the heap. 1099 // Create code object in the heap.
1100 CodeDesc desc; 1100 CodeDesc desc;
1101 masm_.GetCode(&desc); 1101 masm_.GetCode(&desc);
1102 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject()); 1102 Handle<Code> code = factory()->NewCode(desc, flags, masm_.CodeObject());
1103 if (code->has_major_key()) {
1104 code->set_major_key(CodeStub::NoCache);
1105 }
1103 #ifdef ENABLE_DISASSEMBLER 1106 #ifdef ENABLE_DISASSEMBLER
1104 if (FLAG_print_code_stubs) code->Disassemble(name); 1107 if (FLAG_print_code_stubs) code->Disassemble(name);
1105 #endif 1108 #endif
1106 return code; 1109 return code;
1107 } 1110 }
1108 1111
1109 1112
1110 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags, 1113 Handle<Code> StubCompiler::GetCodeWithFlags(Code::Flags flags,
1111 Handle<Name> name) { 1114 Handle<Name> name) {
1112 return (FLAG_print_code_stubs && !name.is_null() && name->IsString()) 1115 return (FLAG_print_code_stubs && !name.is_null() && name->IsString())
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 Handle<FunctionTemplateInfo>( 1900 Handle<FunctionTemplateInfo>(
1898 FunctionTemplateInfo::cast(signature->receiver())); 1901 FunctionTemplateInfo::cast(signature->receiver()));
1899 } 1902 }
1900 } 1903 }
1901 1904
1902 is_simple_api_call_ = true; 1905 is_simple_api_call_ = true;
1903 } 1906 }
1904 1907
1905 1908
1906 } } // namespace v8::internal 1909 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698