Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 ASSERT_EQ(RelocInfo::kNoPosition, lit->function_token_position()); | 217 ASSERT_EQ(RelocInfo::kNoPosition, lit->function_token_position()); |
| 218 Compiler::SetFunctionInfo(fun, lit, true, script); | 218 Compiler::SetFunctionInfo(fun, lit, true, script); |
| 219 | 219 |
| 220 // Hint to the runtime system used when allocating space for initial | 220 // Hint to the runtime system used when allocating space for initial |
| 221 // property space by setting the expected number of properties for | 221 // property space by setting the expected number of properties for |
| 222 // the instances of the function. | 222 // the instances of the function. |
| 223 SetExpectedNofPropertiesFromEstimate(fun, lit->expected_property_count()); | 223 SetExpectedNofPropertiesFromEstimate(fun, lit->expected_property_count()); |
| 224 | 224 |
| 225 #ifdef ENABLE_DEBUGGER_SUPPORT | 225 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 226 // Notify debugger | 226 // Notify debugger |
| 227 Debugger::OnAfterCompile(script, fun); | 227 Debugger::OnAfterCompile(script, fun, false); |
|
Søren Thygesen Gjesse
2010/02/22 10:41:20
It looks as if this is the only place this functio
Peter Rybin
2010/02/22 21:19:08
That's right. The actual usage is in one of my nex
| |
| 228 #endif | 228 #endif |
| 229 | 229 |
| 230 return fun; | 230 return fun; |
| 231 } | 231 } |
| 232 | 232 |
| 233 | 233 |
| 234 static StaticResource<SafeStringInputBuffer> safe_string_input_buffer; | 234 static StaticResource<SafeStringInputBuffer> safe_string_input_buffer; |
| 235 | 235 |
| 236 | 236 |
| 237 Handle<JSFunction> Compiler::Compile(Handle<String> source, | 237 Handle<JSFunction> Compiler::Compile(Handle<String> source, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 563 LOG(CodeCreateEvent(tag, *code, *func_name)); | 563 LOG(CodeCreateEvent(tag, *code, *func_name)); |
| 564 OProfileAgent::CreateNativeCodeRegion(*func_name, | 564 OProfileAgent::CreateNativeCodeRegion(*func_name, |
| 565 code->instruction_start(), | 565 code->instruction_start(), |
| 566 code->instruction_size()); | 566 code->instruction_size()); |
| 567 } | 567 } |
| 568 } | 568 } |
| 569 } | 569 } |
| 570 #endif | 570 #endif |
| 571 | 571 |
| 572 } } // namespace v8::internal | 572 } } // namespace v8::internal |
| OLD | NEW |