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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 } else { | 329 } else { |
330 array->set(j++, *(var->name())); | 330 array->set(j++, *(var->name())); |
331 if (node->fun() == NULL) { | 331 if (node->fun() == NULL) { |
332 if (var->mode() == Variable::CONST) { | 332 if (var->mode() == Variable::CONST) { |
333 // In case this is const property use the hole. | 333 // In case this is const property use the hole. |
334 array->set_the_hole(j++); | 334 array->set_the_hole(j++); |
335 } else { | 335 } else { |
336 array->set_undefined(j++); | 336 array->set_undefined(j++); |
337 } | 337 } |
338 } else { | 338 } else { |
339 Handle<JSFunction> function = | 339 Handle<SharedFunctionInfo> function = |
340 Compiler::BuildBoilerplate(node->fun(), script(), this); | 340 Compiler::BuildFunctionInfo(node->fun(), script(), this); |
341 // Check for stack-overflow exception. | 341 // Check for stack-overflow exception. |
342 if (HasStackOverflow()) return; | 342 if (HasStackOverflow()) return; |
343 array->set(j++, *function); | 343 array->set(j++, *function); |
344 } | 344 } |
345 } | 345 } |
346 } | 346 } |
347 | 347 |
348 // Invoke the platform-dependent code generator to do the actual | 348 // Invoke the platform-dependent code generator to do the actual |
349 // declaration the global variables and functions. | 349 // declaration the global variables and functions. |
350 DeclareGlobals(array); | 350 DeclareGlobals(array); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 } | 514 } |
515 } | 515 } |
516 | 516 |
517 | 517 |
518 void ApiGetterEntryStub::SetCustomCache(Code* value) { | 518 void ApiGetterEntryStub::SetCustomCache(Code* value) { |
519 info()->set_load_stub_cache(value); | 519 info()->set_load_stub_cache(value); |
520 } | 520 } |
521 | 521 |
522 | 522 |
523 } } // namespace v8::internal | 523 } } // namespace v8::internal |
OLD | NEW |