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

Side by Side Diff: src/isolate.h

Issue 12092063: Also allow the empty object map to keep transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 10 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/objects.cc » ('j') | 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 ASSERT(context == NULL || context->IsContext()); 524 ASSERT(context == NULL || context->IsContext());
525 thread_local_top_.context_ = context; 525 thread_local_top_.context_ = context;
526 } 526 }
527 Context** context_address() { return &thread_local_top_.context_; } 527 Context** context_address() { return &thread_local_top_.context_; }
528 528
529 SaveContext* save_context() {return thread_local_top_.save_context_; } 529 SaveContext* save_context() {return thread_local_top_.save_context_; }
530 void set_save_context(SaveContext* save) { 530 void set_save_context(SaveContext* save) {
531 thread_local_top_.save_context_ = save; 531 thread_local_top_.save_context_ = save;
532 } 532 }
533 533
534 // Access to the map of "new Object()".
535 Map* empty_object_map() {
536 return context()->native_context()->object_function()->map();
537 }
538
539 // Access to current thread id. 534 // Access to current thread id.
540 ThreadId thread_id() { return thread_local_top_.thread_id_; } 535 ThreadId thread_id() { return thread_local_top_.thread_id_; }
541 void set_thread_id(ThreadId id) { thread_local_top_.thread_id_ = id; } 536 void set_thread_id(ThreadId id) { thread_local_top_.thread_id_ = id; }
542 537
543 // Interface to pending exception. 538 // Interface to pending exception.
544 MaybeObject* pending_exception() { 539 MaybeObject* pending_exception() {
545 ASSERT(has_pending_exception()); 540 ASSERT(has_pending_exception());
546 return thread_local_top_.pending_exception_; 541 return thread_local_top_.pending_exception_;
547 } 542 }
548 bool external_caught_exception() { 543 bool external_caught_exception() {
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 1445
1451 // Mark the native context with out of memory. 1446 // Mark the native context with out of memory.
1452 inline void Context::mark_out_of_memory() { 1447 inline void Context::mark_out_of_memory() {
1453 native_context()->set_out_of_memory(HEAP->true_value()); 1448 native_context()->set_out_of_memory(HEAP->true_value());
1454 } 1449 }
1455 1450
1456 1451
1457 } } // namespace v8::internal 1452 } } // namespace v8::internal
1458 1453
1459 #endif // V8_ISOLATE_H_ 1454 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698